Merge pull request #246 from sosedoff/confirm-disconnect

Require confirmation to close the connection
This commit is contained in:
Dan Sosedoff
2017-06-05 23:15:31 -05:00
committed by GitHub
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() {
if (!confirm("Are you sure you want to disconnect?")) return;
disconnect(function() {
showConnectionSettings();
resetTable();