Display queue order as Aria2 will download.
This commit is contained in:
parent
982c5a5535
commit
ee90971472
|
@ -462,11 +462,11 @@ function refreshDownloadTemplates(top_elem, data) {
|
||||||
updateDownloadTemplates(elem, ctx);
|
updateDownloadTemplates(elem, ctx);
|
||||||
} else {
|
} else {
|
||||||
var item = Mustache.render(down_template, ctx);
|
var item = Mustache.render(down_template, ctx);
|
||||||
new_items.splice(0, 0, item); //prepend to array using splice (unshift method may not be supported)
|
new_items.push(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (new_items.length > 0) {
|
if (new_items.length > 0) {
|
||||||
$top_elem.prepend(new_items);
|
$top_elem.append(new_items);
|
||||||
}
|
}
|
||||||
$top_elem.children('.hero-unit').remove();
|
$top_elem.children('.hero-unit').remove();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user