diff options
author | shadlaws <shad@shadlaws.com> | 2013-02-13 00:31:43 +0100 |
---|---|---|
committer | shadlaws <shad@shadlaws.com> | 2013-02-13 00:31:43 +0100 |
commit | 1ac2c959d0f82c1ccef6cce96638704f40097e38 (patch) | |
tree | f8a3f85290f6573c9aa3e1439ff92a60f9d5ac2e | |
parent | 6e8a647d0b8de137b24fd604eb6c8ba70457be3c (diff) |
Dialog centering, sizing, etc. seem to be fixed! Well, *if* they come from a link/menu.
If they come from a context menu, they're still really broken.
-rw-r--r-- | lib/gallery.dialog.js | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/lib/gallery.dialog.js b/lib/gallery.dialog.js index 80f4f81d..b1442390 100644 --- a/lib/gallery.dialog.js +++ b/lib/gallery.dialog.js @@ -1,5 +1,12 @@ (function($) { $.widget("ui.gallery_dialog", { + options: { + autoOpen: false, + autoResize: true, + modal: true, + resizable: false, + position: "center" + }, _init: function() { var self = this; if (!self.options.immediate) { @@ -82,7 +89,7 @@ } else if ($("#g-dialog .g-dialog-panel").length) { dialogWidth = size.width() - 100; $("#g-dialog").dialog("option", "height", size.height() - 100); - } else if (childWidth == "" || childWidth > 300) { + } else { dialogWidth = 500; } $("#g-dialog").dialog('option', 'width', dialogWidth); @@ -174,14 +181,4 @@ form_closing: function(event, ui) {}, dialog_closing: function(event, ui) {} }); - - $.extend($.ui.gallery_dialog, { - defaults: { - autoOpen: false, - autoResize: true, - modal: true, - resizable: false, - position: "center" - } - }); })(jQuery); |