Require confirmation to close the connection

This commit is contained in:
Dan Sosedoff 2017-06-05 22:43:19 -05:00
parent fd6e4cc189
commit 574f642200
2 changed files with 4 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -1012,6 +1012,8 @@ $(document).ready(function() {
}); });
$("#close_connection").on("click", function() { $("#close_connection").on("click", function() {
if (!confirm("Are you sure you want to disconnect?")) return;
disconnect(function() { disconnect(function() {
showConnectionSettings(); showConnectionSettings();
resetTable(); resetTable();