diff --git a/web/pgadmin/static/js/codemirror/addon/fold/pgadmin-sqlfoldcode.js b/web/pgadmin/static/js/codemirror/addon/fold/pgadmin-sqlfoldcode.js index 06891e917..71954d6c3 100644 --- a/web/pgadmin/static/js/codemirror/addon/fold/pgadmin-sqlfoldcode.js +++ b/web/pgadmin/static/js/codemirror/addon/fold/pgadmin-sqlfoldcode.js @@ -26,7 +26,7 @@ let tokenSetNo = 0; let startTkn = tokenSet[tokenSetNo].start, endTkn = tokenSet[tokenSetNo].end; - for (; at > 0;) { + while (at > 0) { var found = lineText.lastIndexOf(startTkn, at); var startToken = startTkn; var endToken = endTkn; @@ -57,7 +57,7 @@ outer: for (var i = line + 1; i < lastLine; ++i) { var text = cm.getLine(i), pos = 0; - for (;;) { + while (true) { var nextOpen = text.indexOf(startToken, pos), nextClose = text.indexOf(endToken, pos); if (nextOpen < 0) nextOpen = text.length; diff --git a/web/pgadmin/static/vendor/backform/backform.js b/web/pgadmin/static/vendor/backform/backform.js index b598fd60e..e8e13437c 100644 --- a/web/pgadmin/static/vendor/backform/backform.js +++ b/web/pgadmin/static/vendor/backform/backform.js @@ -37,7 +37,7 @@ } (this, function(root, _, $, Backbone) { // Backform namespace and global options - Backform = root.Backform = { + var Backform = root.Backform = { // HTML markup global class names. More can be added by individual controls // using _.extend. Look at RadioControl as an example. formClassName: "backform form-inline", diff --git a/web/pgadmin/tools/debugger/static/js/direct.js b/web/pgadmin/tools/debugger/static/js/direct.js index cc3b579c3..a1851058c 100644 --- a/web/pgadmin/tools/debugger/static/js/direct.js +++ b/web/pgadmin/tools/debugger/static/js/direct.js @@ -1590,8 +1590,9 @@ define([ ); } }); - } else + } else{ this.intializePanels(); + } }, // Read the messages of the database server and get the port ID and attach diff --git a/web/pgadmin/tools/sqleditor/static/js/sqleditor.js b/web/pgadmin/tools/sqleditor/static/js/sqleditor.js index 4271d51ad..60758255a 100644 --- a/web/pgadmin/tools/sqleditor/static/js/sqleditor.js +++ b/web/pgadmin/tools/sqleditor/static/js/sqleditor.js @@ -3536,8 +3536,9 @@ define('tools.querytool', [ return 2000; } else if (seconds >= 90) { return 5000; - } else + } else{ return 1; + } }; }, @@ -3857,8 +3858,9 @@ define('tools.querytool', [ if (res.data.status) { // Refresh the sql grid queryToolActions.executeQuery(self); - } else + } else{ alertify.alert(gettext('Change limit Error'), res.data.result); + } }, 10 ); })