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