Fixed issues introduce by SonarQube fixes.

This commit is contained in:
Akshay Joshi
2022-02-01 14:11:18 +05:30
parent 21359c6c74
commit aa5b1d50b9
6 changed files with 27 additions and 36 deletions

View File

@@ -2372,16 +2372,14 @@ define('tools.querytool', [
pgWindow.default.pgAdmin && pgWindow.default.pgAdmin.Browser
&& pgWindow.default.pgAdmin.Browser.preference_version() <= 0) {
Notify.alert()
.setting({
'title': gettext('Connection lost'),
'label':gettext('Close'),
'message': gettext('The pgAdmin browser window has been closed and the connection to the server is lost. Please close this window and open a new pgAdmin session.'),
'onok': function(){
//Close the window after connection is lost
window.close();
},
}).show();
Notify.alert(gettext('Connection lost'),
gettext('The pgAdmin browser window has been closed and the connection to the server is lost. Please close this window and open a new pgAdmin session.'),
function(){
//Close the window after connection is lost
window.close();
},
gettext('Close')
);
}
};