Fix save-user_flag.js
This commit is contained in:
1 parent
23fc32f835
commit
d1a3fe6dbf
1 file changed
+1
-2
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user