mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-23 23:20:57 +01:00
Fix save-user_flag.js
This commit is contained in:
parent
23fc32f835
commit
d1a3fe6dbf
@ -1,6 +1,5 @@
|
||||
onready(function(){
|
||||
var uri = window.location.pathname.substr(1);
|
||||
var flagStorage = uri.slice(0, -1)+'_flag';
|
||||
var flagStorage = "flag_"+window.location.pathname.split('/')[1];
|
||||
var item = window.localStorage.getItem(flagStorage);
|
||||
$('select[name=user_flag]').val(item);
|
||||
$('select[name=user_flag]').change(function() {
|
||||
|
Loading…
Reference in New Issue
Block a user