2014-07-04 21:11:15 -04:00
|
|
|
onready(function(){
|
2014-07-05 17:17:08 -04:00
|
|
|
var flagStorage = "flag_"+window.location.pathname.split('/')[1];
|
2014-07-04 21:11:15 -04:00
|
|
|
var item = window.localStorage.getItem(flagStorage);
|
|
|
|
$('select[name=user_flag]').val(item);
|
|
|
|
$('select[name=user_flag]').change(function() {
|
|
|
|
window.localStorage.setItem(flagStorage, $(this).val());
|
|
|
|
});
|
|
|
|
});
|