From c3fae7388c27b52de9109ddf54948b2722f47e5e Mon Sep 17 00:00:00 2001 From: Hamza Zia Date: Sat, 9 Jun 2012 21:40:45 +0800 Subject: [PATCH] empty download bug --- js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/script.js b/js/script.js index 1983653..c3bfcac 100755 --- a/js/script.js +++ b/js/script.js @@ -403,7 +403,6 @@ function getTemplateCtx(data) { } function updateDownloadTemplates(elem, ctx) { elem = $(elem); - elem.children('.hero-unit').remove(); for(var i in ctx) { elem.find('.tmp_' + i).text(ctx[i]); } @@ -441,6 +440,7 @@ function refreshDownloadTemplates(top_elem, data) { $('#' + top_elem + '_downloads').prepend(item); } } + $('#' + top_elem + '_downloads').children('.hero-unit').remove(); } function getActiveSettings(gid, cb) {