diff options
Diffstat (limited to 'themes/default/js')
-rw-r--r-- | themes/default/js/ui.init.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/themes/default/js/ui.init.js b/themes/default/js/ui.init.js index 7a9c69b5..325e5299 100644 --- a/themes/default/js/ui.init.js +++ b/themes/default/js/ui.init.js @@ -26,7 +26,7 @@ $("document").ready(function() { var containerWidth = $("#gItem").width(); var oPhoto = $("#gItem img").filter(function() { return this.id.match(/gPhotoID-/); - }) + }); if (containerWidth < oPhoto.width()) { var proportion = containerWidth / oPhoto.width(); oPhoto.width(containerWidth); @@ -111,17 +111,17 @@ function openDialog(element) { $(form).ajaxSubmit({ success: function(data, textStatus) { if (data == "") { - window.location.reload() + window.location.reload(); $("#gDialog").dialog("close"); } $("#gDialog").html(data); } }); - } + }; buttons["Reset"] = function() { var form = $("#gDialog").find("form"); form[0].reset(); - } + }; $("#gDialog").dialog({ autoResize: false, |