Fix grid to list in series view

Fix sort asc, desc in author and series list
This commit is contained in:
Ozzieisaacs
2021-11-01 13:11:49 +01:00
parent b3b85bf692
commit a5415e00d5
4 changed files with 10 additions and 8 deletions
+4 -2
View File
@@ -34,13 +34,14 @@ $("#desc").click(function() {
method:"post",
contentType: "application/json; charset=utf-8",
dataType: "json",
url: window.location.pathname + "/../../ajax/view",
url: getPath() + "/ajax/view",
data: "{\"" + page + "\": {\"dir\": \"desc\"}}",
});
$list.isotope({
sortBy: "name",
sortAscending: true
});
direction = 0;
});
$("#asc").click(function() {
@@ -52,13 +53,14 @@ $("#asc").click(function() {
method:"post",
contentType: "application/json; charset=utf-8",
dataType: "json",
url: window.location.pathname + "/../../ajax/view",
url: getPath() + "/ajax/view",
data: "{\"" + page + "\": {\"dir\": \"asc\"}}",
});
$list.isotope({
sortBy: "name",
sortAscending: false
});
direction = 1;
});
$("#all").click(function() {
+2 -2
View File
@@ -73,7 +73,7 @@ $("#desc").click(function() {
method:"post",
contentType: "application/json; charset=utf-8",
dataType: "json",
url: window.location.pathname + "/../../ajax/view",
url: getPath() + "/ajax/view",
data: "{\"" + page + "\": {\"dir\": \"desc\"}}",
});
var index = 0;
@@ -121,7 +121,7 @@ $("#asc").click(function() {
method:"post",
contentType: "application/json; charset=utf-8",
dataType: "json",
url: window.location.pathname + "/../../ajax/view",
url: getPath() + "/ajax/view",
data: "{\"" + page + "\": {\"dir\": \"asc\"}}",
});
var index = 0;