Keep cookies for 365 days.

This commit is contained in:
Jim Driessen
2017-10-05 18:07:09 +02:00
committed by Daan Sprenkels
parent 041cd6e2b6
commit fd38f5772c
+2 -2
View File
@@ -59,7 +59,7 @@ $(function () {
});
$('.pagesize').change(function(){
Cookies.set('pagesize', $(this).val());
Cookies.set('pagesize', $(this).val(), { expires: 365 });
$('.pagenum').val(1);
getSongs();
});
@@ -126,7 +126,7 @@ $(function () {
$('#queue-time-header').click(function(){
showTimeToPlay = !showTimeToPlay;
$('#queue-time-header').text(showTimeToPlay ? 'Plays In' : 'Plays At');
Cookies.set('showtimetoplay', showTimeToPlay ? '1' : '0');
Cookies.set('showtimetoplay', showTimeToPlay ? '1' : '0', { expires: 365 });
});
getSongs();
});