Store last selected view for sidebar (not for categories, series, publishers, ..)

Started making search paged
This commit is contained in:
Ozzieisaacs
2020-07-11 12:09:34 +02:00
parent df01022f49
commit f8139f3198
14 changed files with 245 additions and 207 deletions
+9 -3
View File
@@ -19,6 +19,14 @@ var direction = 0; // Descending order
var sort = 0; // Show sorted entries
$("#sort_name").click(function() {
/*$.ajax({
method:"post",
contentType: "application/json; charset=utf-8",
dataType: "json",
url: window.location.pathname + "/../../ajax/view",
data: "{" + st + "}",
});*/
var count = 0;
var index = 0;
var store;
@@ -40,9 +48,7 @@ $("#sort_name").click(function() {
count++;
}
});
/*listItems.sort(function(a,b){
return $(a).children()[1].innerText.localeCompare($(b).children()[1].innerText)
});*/
// Find count of middle element
if (count > 20) {
var middle = parseInt(count / 2, 10) + (count % 2);