Store last selected view for sidebar (not for categories, series, publishers, ..)
Started making search paged
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user