diff --git a/web/pgadmin/browser/templates/browser/body.html b/web/pgadmin/browser/templates/browser/body.html
index 8c7a9246a..aa79ed0a0 100644
--- a/web/pgadmin/browser/templates/browser/body.html
+++ b/web/pgadmin/browser/templates/browser/body.html
@@ -50,29 +50,11 @@ function storeLayout(pane, $pane, paneState, paneOptions) {
return true
}
-function getSetting(setting, defval) {
- var value
- $.ajaxSetup({
- async: false
- });
-
- $.post("{{ url_for('settings.get') }}", { setting: setting, default: defval })
- .done(function(data) {
- value = data
- });
-
- $.ajaxSetup({
- async: true
- });
-
- return value
-}
-
// Get the previous settings
-var sqlPaneSize = getSetting("Browser/SQLPane/Size", "250")
-var sqlPaneClosed = (getSetting("Browser/SQLPane/Closed", "false") == "true" ? true : false)
-var browserPaneSize = getSetting("Browser/BrowserPane/Size", "250")
-var browserPaneClosed = (getSetting("Browser/BrowserPane/Closed", "false") == "true" ? true : false)
+var sqlPaneSize = getIntegerSetting("Browser/SQLPane/Size", 250)
+var sqlPaneClosed = getBooleanSetting("Browser/SQLPane/Closed", false)
+var browserPaneSize = getIntegerSetting("Browser/BrowserPane/Size", 250)
+var browserPaneClosed = getBooleanSetting("Browser/BrowserPane/Closed", false)
var layout
var layoutDefault = {
diff --git a/web/pgadmin/static/js/main.js b/web/pgadmin/static/js/main.js
deleted file mode 100644
index 8b1378917..000000000
--- a/web/pgadmin/static/js/main.js
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/web/pgadmin/templates/base.html b/web/pgadmin/templates/base.html
index 8de0dc44a..7fb08323b 100755
--- a/web/pgadmin/templates/base.html
+++ b/web/pgadmin/templates/base.html
@@ -42,7 +42,9 @@
-
+