diff --git a/web/pgadmin/browser/static/js/panel.js b/web/pgadmin/browser/static/js/panel.js index 71d2c68..1699fa3 100644 --- a/web/pgadmin/browser/static/js/panel.js +++ b/web/pgadmin/browser/static/js/panel.js @@ -7,7 +7,8 @@ function(_, pgAdmin) { pgAdmin.Browser.Panel = function(options) { var defaults = [ 'name', 'title', 'width', 'height', 'showTitle', 'isCloseable', - 'isPrivate', 'content', 'icon', 'events', 'onCreate', 'elContainer' + 'isMoveable', 'isPrivate', 'content', 'icon', 'events', + 'onCreate', 'elContainer' ]; _.extend(this, _.pick(options, defaults)); } @@ -19,6 +20,7 @@ function(_, pgAdmin) { height: 600, showTitle: true, isCloseable: true, + isMoveable: true, isPrivate: false, content: '', icon: '', @@ -48,6 +50,7 @@ function(_, pgAdmin) { }).append($(that.content)); myPanel.closeable(!!that.isCloseable); + myPanel.moveable(!!that.isMoveable); myPanel.layout().addItem($container); that.panel = myPanel; if (that.events && _.isObject(that.events)) { diff --git a/web/pgadmin/browser/templates/browser/js/browser.js b/web/pgadmin/browser/templates/browser/js/browser.js index ad0f165..d186e96 100644 --- a/web/pgadmin/browser/templates/browser/js/browser.js +++ b/web/pgadmin/browser/templates/browser/js/browser.js @@ -58,6 +58,7 @@ function(require, $, _, S, Bootstrap, pgAdmin, alertify, CodeMirror) { showTitle: false, isCloseable: false, isPrivate: true, + isMoveable: false, content: '
' }), // Properties of the object node