From ee90971472165d3b3332b4c4eaf1a3a6a104250b Mon Sep 17 00:00:00 2001 From: Carl Monnig Date: Sat, 5 Jan 2013 10:41:05 +0200 Subject: [PATCH] Display queue order as Aria2 will download. --- js/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/script.js b/js/script.js index 2177817..634061e 100755 --- a/js/script.js +++ b/js/script.js @@ -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(); }