diff options
author | Chad Kieffer <ckieffer@gmail.com> | 2009-05-30 15:25:24 -0600 |
---|---|---|
committer | Chad Kieffer <ckieffer@gmail.com> | 2009-05-30 15:25:24 -0600 |
commit | ef14f0faf56738139d034136aa7ab47588581c2c (patch) | |
tree | d5711786809a97d36ae996f8c415cac5b41805bd /modules/gallery/js/quick.js | |
parent | 2c1c4d3475f9748c0f43848714ad834977ea9665 (diff) |
White space fixes
Diffstat (limited to 'modules/gallery/js/quick.js')
-rw-r--r-- | modules/gallery/js/quick.js | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/modules/gallery/js/quick.js b/modules/gallery/js/quick.js index e7f35cea..8a87ed07 100644 --- a/modules/gallery/js/quick.js +++ b/modules/gallery/js/quick.js @@ -67,22 +67,22 @@ var quick_do = function(cont, pane, img) { url: pane.attr("href"), dataType: "json", success: function(data) { - img.css("opacity", "1"); - cont.removeClass("gLoadingLarge"); - if (data.src) { - img.attr("width", data.width); - img.attr("height", data.height); - img.attr("src", data.src); - if (data.height > data.width) { - img.css("margin-top", -32); - } else { - img.css("margin-top", 0); - } + img.css("opacity", "1"); + cont.removeClass("gLoadingLarge"); + if (data.src) { + img.attr("width", data.width); + img.attr("height", data.height); + img.attr("src", data.src); + if (data.height > data.width) { + img.css("margin-top", -32); + } else { + img.css("margin-top", 0); + } } else if (data.location) { window.location = data.location; - } else if (data.reload) { + } else if (data.reload) { window.location.reload(); - } + } } }); } @@ -92,4 +92,3 @@ var quick_do = function(cont, pane, img) { var hide_quick = function() { $("#gQuickPane").remove(); }; - |