diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-07-09 06:08:20 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-07-09 11:09:35 -0700 |
commit | 591c5a11a396c6611a1e40f3c10253c5cfd78434 (patch) | |
tree | 13c03a13fef0531a665f065524397feaba4a7500 /lib/gallery.dialog.js | |
parent | 72f801df7d507599e201a6cb47d4a0304e00f5de (diff) |
Reset the postion option to center when the form data is reloaded, to force the dialog to recenter in case the contents have changed.
Diffstat (limited to 'lib/gallery.dialog.js')
-rw-r--r-- | lib/gallery.dialog.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gallery.dialog.js b/lib/gallery.dialog.js index e6bd7392..289345bc 100644 --- a/lib/gallery.dialog.js +++ b/lib/gallery.dialog.js @@ -119,6 +119,7 @@ if (data.form) { var formData = unescape(data.form); $("#g-dialog form").replaceWith(formData); + $("#g-dialog").dialog("option", "position", "center"); $("#g-dialog form :submit").removeClass("ui-state-disabled") .attr("disabled", null); self._ajaxify_dialog(); |