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