Fixed variable scope issue in server.js

This commit is contained in:
Harshal Dhumal 2016-05-10 18:16:08 +05:30 committed by Akshay Joshi
parent 83b6a04763
commit 180630ce0e

View File

@ -81,7 +81,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
callbacks: {
/* Connect the server */
connect_server: function(args){
var input = args || {};
var input = args || {},
obj = this,
t = pgBrowser.tree,
i = input.item || t.selected(),
@ -95,7 +95,7 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
},
/* Disconnect the server */
disconnect_server: function(args) {
var input = args || {};
var input = args || {},
obj = this,
t = pgBrowser.tree,
i = 'item' in input ? input.item : t.selected(),