diff options
author | Chad Kieffer <ckieffer@gmail.com> | 2009-08-28 16:37:14 -0600 |
---|---|---|
committer | Chad Kieffer <ckieffer@gmail.com> | 2009-08-28 16:37:14 -0600 |
commit | fc1c4d5119959a4db0d49b7c0aa618749f27c740 (patch) | |
tree | 1080246e31fecc1395eb73a50a2efe58e98d68ef | |
parent | d1a44af862e08676eaecde62e71597ed1eae85ec (diff) |
Button styles and event handlers weren't being applied in dialogs, fixes #669.
-rw-r--r-- | lib/gallery.dialog.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gallery.dialog.js b/lib/gallery.dialog.js index ace588f6..d1ea3edf 100644 --- a/lib/gallery.dialog.js +++ b/lib/gallery.dialog.js @@ -30,7 +30,7 @@ $("#gDialog").html(data).gallery_show_loading(); if ($("#gDialog form").length) { - self._trigger("form_loaded", null, $("#gDialog form")); + self.form_loaded(null, $("#gDialog form")); } self._layout(); @@ -70,7 +70,7 @@ $("#gDialog").dialog('option', 'width', dialogWidth); }, - form_loaded: function event(event, ui) { + form_loaded: function(event, ui) { // Should be defined (and localized) in the theme MSG_CANCEL = MSG_CANCEL || 'Cancel'; var eCancel = '<a href="#" class="gCancel">' + MSG_CANCEL + '</a>'; @@ -78,7 +78,7 @@ $("#gDialog .submit").addClass("ui-state-default ui-corner-all"); $("#gDialog .submit").parent().append(eCancel); $("#gDialog .gCancel").click(function(event) { - $("gDialog").dialog("close"); + $("#gDialog").dialog("close"); event.preventDefault(); }); } @@ -92,7 +92,7 @@ ); }, - close_dialog: function (event, ui) { + close_dialog: function(event, ui) { var self = $("#gDialog").dialog("option", "self"); if ($("#gDialog form").length) { self._trigger("form_closing", null, $("#gDialog form")); |