mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
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:
@@ -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);
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user