From b9e8ce4190a2fee59b2b111be1bc485e2cc5eb7f Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 20 Jan 2009 08:54:15 +0000 Subject: Quick edit now lets you set the album cover. --- core/js/quick.js | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'core/js') 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"); } }); } -- cgit v1.2.3