mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-11 08:42:20 +01:00
Keep cookies for 365 days.
This commit is contained in:
committed by
Daan Sprenkels
parent
041cd6e2b6
commit
fd38f5772c
@ -59,7 +59,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();
|
||||||
});
|
});
|
||||||
@ -126,7 +126,7 @@ $(function () {
|
|||||||
$('#queue-time-header').click(function(){
|
$('#queue-time-header').click(function(){
|
||||||
showTimeToPlay = !showTimeToPlay;
|
showTimeToPlay = !showTimeToPlay;
|
||||||
$('#queue-time-header').text(showTimeToPlay ? 'Plays In' : 'Plays At');
|
$('#queue-time-header').text(showTimeToPlay ? 'Plays In' : 'Plays At');
|
||||||
Cookies.set('showtimetoplay', showTimeToPlay ? '1' : '0');
|
Cookies.set('showtimetoplay', showTimeToPlay ? '1' : '0', { expires: 365 });
|
||||||
});
|
});
|
||||||
getSongs();
|
getSongs();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user