Fixed few bugs and changed the node create/edit view to use the dialog

(tabbed) UI.

Also, fixed few bugs pointed by Dave:
* Open the URL in separate browser tab/window.
* Fixed few CSS changes for look and feel for the dialog view
* Some of the panels were not listed in the context menu for the
  wcDocker.
This commit is contained in:
Ashesh Vashi
2015-08-11 19:19:27 +05:30
parent b0b964dd55
commit 798398dba5
7 changed files with 49 additions and 29 deletions

View File

@@ -5,7 +5,7 @@ function(_, pgAdmin) {
pgAdmin.Browser = pgAdmin.Browser || {};
pgAdmin.Browser.Frame = function(options) {
var defaults = [
'name', 'title', 'width', 'height', 'showTitle', 'isClosable',
'name', 'title', 'width', 'height', 'showTitle', 'isCloseable',
'isPrivate', 'url'];
_.extend(this, _.pick(options, defaults));
}
@@ -31,7 +31,7 @@ function(_, pgAdmin) {
myPanel.initSize(that.width, that.height);
if (myPanel.showTitle == false)
myPanle.title(false);
myPanel.closeable(that.isCloseable == true);
myPanel.closeable(!!that.isCloseable);
var $frameArea = $('<div style="width:100%;height:100%;position:relative;display:table">');
myPanel.layout().addItem($frameArea);

View File

@@ -31,7 +31,7 @@ function(_, pgAdmin) {
myPanel.title(false);
else
myPanel.title(title || that.title);
myPanel.closeable(that.isCloseable == true);
myPanel.closeable(!!that.isCloseable);
myPanel.layout().addItem(
$('<div>', {
'class': 'pg-panel-content'