mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-11 14:02:21 +01:00
Make pagesize cookie expire in 365 days instead of after closing the browser.
This commit is contained in:
@ -16,7 +16,7 @@ $(function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$('.pagesize').change(function(){
|
$('.pagesize').change(function(){
|
||||||
Cookies.set('pagesize', $(this).val());
|
Cookies.set('pagesize', $(this).val(), { expires: 365 });
|
||||||
$('.pagenum').val(1);
|
$('.pagenum').val(1);
|
||||||
getSongs();
|
getSongs();
|
||||||
});
|
});
|
||||||
|
|||||||
@ -48,7 +48,7 @@ $(function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$('.pagesize').change(function(){
|
$('.pagesize').change(function(){
|
||||||
Cookies.set('pagesize', $(this).val());
|
Cookies.set('pagesize', $(this).val(), { expires: 365 });
|
||||||
$('.pagenum').val(1);
|
$('.pagenum').val(1);
|
||||||
getSongs();
|
getSongs();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user