Jano Slota
10 years ago
committed by
czaks
1 changed files with 9 additions and 0 deletions
@ -0,0 +1,9 @@ |
|||
onready(function(){ |
|||
var uri = window.location.pathname.substr(1); |
|||
var flagStorage = uri.slice(0, -1)+'_flag'; |
|||
var item = window.localStorage.getItem(flagStorage); |
|||
$('select[name=user_flag]').val(item); |
|||
$('select[name=user_flag]').change(function() { |
|||
window.localStorage.setItem(flagStorage, $(this).val()); |
|||
}); |
|||
}); |
Loading…
Reference in new issue