mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-13 03:22:24 +01:00
Save number of songs in the search table to a cookie.
This commit is contained in:
@ -10,6 +10,7 @@ var iteration = 0;
|
||||
var requestViewOpen = false;
|
||||
|
||||
$(function () {
|
||||
$('.pagesize').val(Cookies.get('pagesize'));
|
||||
refreshQueue();
|
||||
setInterval(updateTime, 1000);
|
||||
|
||||
@ -38,14 +39,16 @@ $(function () {
|
||||
});
|
||||
|
||||
$('.pagenum').change(function(){
|
||||
console.log('Page: ' + $(this).val());
|
||||
});
|
||||
|
||||
$('#search-all, #search-uploader, .pagenum').change(function(){
|
||||
getSongs();
|
||||
});
|
||||
|
||||
$('#search-all, #search-uploader').change(function(){
|
||||
$('.pagenum').val(1);
|
||||
getSongs();
|
||||
});
|
||||
|
||||
$('.pagesize').change(function(){
|
||||
Cookies.set('pagesize', $(this).val());
|
||||
$('.pagenum').val(1);
|
||||
getSongs();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user