Make pagesize cookie expire in 365 days instead of after closing the browser.

This commit is contained in:
Jim Driessen
2017-02-01 11:37:14 +01:00
parent 48b35a6fde
commit 0ed4f5af63
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ $(function () {
});
$('.pagesize').change(function(){
Cookies.set('pagesize', $(this).val());
Cookies.set('pagesize', $(this).val(), { expires: 365 });
$('.pagenum').val(1);
getSongs();
});

View File

@ -48,7 +48,7 @@ $(function () {
});
$('.pagesize').change(function(){
Cookies.set('pagesize', $(this).val());
Cookies.set('pagesize', $(this).val(), { expires: 365 });
$('.pagenum').val(1);
getSongs();
});