empty download bug

This commit is contained in:
Hamza Zia 2012-06-09 21:40:45 +08:00
parent 18f72e4f62
commit c3fae7388c

View File

@ -403,7 +403,6 @@ function getTemplateCtx(data) {
} }
function updateDownloadTemplates(elem, ctx) { function updateDownloadTemplates(elem, ctx) {
elem = $(elem); elem = $(elem);
elem.children('.hero-unit').remove();
for(var i in ctx) { for(var i in ctx) {
elem.find('.tmp_' + i).text(ctx[i]); elem.find('.tmp_' + i).text(ctx[i]);
} }
@ -441,6 +440,7 @@ function refreshDownloadTemplates(top_elem, data) {
$('#' + top_elem + '_downloads').prepend(item); $('#' + top_elem + '_downloads').prepend(item);
} }
} }
$('#' + top_elem + '_downloads').children('.hero-unit').remove();
} }
function getActiveSettings(gid, cb) { function getActiveSettings(gid, cb) {