diff --git a/cmd/magneticow/data/static/scripts/torrents.js b/cmd/magneticow/data/static/scripts/torrents.js index 5b9f03e..c81d4dd 100644 --- a/cmd/magneticow/data/static/scripts/torrents.js +++ b/cmd/magneticow/data/static/scripts/torrents.js @@ -41,15 +41,18 @@ window.onload = function () { query = queryInput.value switch (sortDropdown.selectedIndex) { case 0: + setOrderBy("RELEVANCE") + break; case 1: + case 2: setOrderBy("TOTAL_SIZE") break; - case 2: case 3: + case 4: setOrderBy("DISCOVERED_ON") break; - case 4: case 5: + case 6: setOrderBy("N_FILES") break; } diff --git a/cmd/magneticow/data/templates/torrents.html b/cmd/magneticow/data/templates/torrents.html index 9621f16..fdefbaf 100644 --- a/cmd/magneticow/data/templates/torrents.html +++ b/cmd/magneticow/data/templates/torrents.html @@ -1,4 +1,5 @@ +
@@ -30,6 +31,7 @@