diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-20 08:54:15 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-20 08:54:15 +0000 |
commit | b9e8ce4190a2fee59b2b111be1bc485e2cc5eb7f (patch) | |
tree | 1487c3036b6430bfdbce5aa1feabed9f9be26595 /core/js | |
parent | be1f9d6892bb766ccbc8b09b99c39eab373463d7 (diff) |
Quick edit now lets you set the album cover.
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/quick.js | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/core/js/quick.js b/core/js/quick.js index 36b6f250..e662f77f 100644 --- a/core/js/quick.js +++ b/core/js/quick.js @@ -48,16 +48,18 @@ var quick_do = function(cont, pane, img) { url: pane.attr("href"), dataType: "json", success: function(data) { - img.css("opacity", "1"); - 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); - } - cont.removeClass("gLoadingLarge"); + img.css("opacity", "1"); + 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); + } + } + cont.removeClass("gLoadingLarge"); } }); } |