forked from leftypol/leftypol
Minor flag javascript fixes
This commit is contained in:
parent
b518cc94c3
commit
8e2de03447
|
@ -10,7 +10,7 @@
|
|||
function getFlagUrl(value){
|
||||
// No flag or None flag
|
||||
if(!value || value == "") {
|
||||
return ""
|
||||
return "/static/blank.gif"
|
||||
} else {
|
||||
return "/static/flags/"+value+".png"
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ function getFlagUrl(value){
|
|||
|
||||
// Attempt to load flag (see js/save-user_flag.js)
|
||||
function loadFlag () {
|
||||
var flagStorage = "flag_" + document.getElementsByName('board')[0].value;
|
||||
var flagStorage = "flag_" + board_name;
|
||||
return window.localStorage.getItem(flagStorage);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
function user_flag() {
|
||||
var flagStorage = "flag_" + document.getElementsByName('board')[0].value;
|
||||
var flagStorage = "flag_" + board_name;
|
||||
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