Display queue order as Aria2 will download.

This commit is contained in:
Carl Monnig 2013-01-05 10:41:05 +02:00
parent 982c5a5535
commit ee90971472

View File

@ -462,11 +462,11 @@ function refreshDownloadTemplates(top_elem, data) {
updateDownloadTemplates(elem, ctx);
} else {
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) {
$top_elem.prepend(new_items);
$top_elem.append(new_items);
}
$top_elem.children('.hero-unit').remove();
}