empty download bug
This commit is contained in:
parent
18f72e4f62
commit
c3fae7388c
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user