mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-14 19:21:46 +03:00
Merge pull request #246 from sosedoff/confirm-disconnect
Require confirmation to close the connection
This commit is contained in:
commit
aba81334a5
File diff suppressed because one or more lines are too long
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user