mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Began processing for result limiting and paging
This commit is contained in:
2
src/interface/static/js/jquery-3.4.1.min.js
vendored
Normal file
2
src/interface/static/js/jquery-3.4.1.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
27
src/interface/static/js/pyshelf_ux.js
Normal file
27
src/interface/static/js/pyshelf_ux.js
Normal file
@@ -0,0 +1,27 @@
|
||||
$(document).ready(function(){
|
||||
//_set = $('input#_set').attr('value');
|
||||
$('input.next_page').on('click', function(){next_page(1)});
|
||||
$('input.prev_page').on('click', function(){prev_page(1)});
|
||||
|
||||
function next_page(set){
|
||||
/*
|
||||
var re = new RegExp(/^.*\//);
|
||||
var _root = re.exec(window.location.href);
|
||||
var _path = _root[0].substring(0, _root[0].length -1)
|
||||
document.location.href = 'next_page?bookset='+set;
|
||||
*/
|
||||
console.log("next_page clicked");
|
||||
var _r = $.get('next_page', 'bookset='+set);
|
||||
console.log(_r);
|
||||
}
|
||||
|
||||
function prev_page(set){
|
||||
/*
|
||||
var re = new RegExp(/^.*\//);
|
||||
var _root = re.exec(window.location.href);
|
||||
document.location.href = _root+'prev_page?bookset='+set;
|
||||
*/
|
||||
console.log("prev_page clicked");
|
||||
$.get('prev_page', 'bookset='+set);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user