forked from GithubBackups/vichan
Merge pull request #406 from bui/flag-previews-fix
don't show wavy fabric preview for "None"
This commit is contained in:
commit
d9eef2b477
@ -8,6 +8,9 @@
|
||||
$(document).on('ready', function() {
|
||||
var flag_previews = function() {
|
||||
if (!$('.flag_preview').length) $('[name=user_flag]').after('<img class="flag_preview">');
|
||||
if (!$(this).val()) {
|
||||
return $('.flag_preview').remove();
|
||||
}
|
||||
|
||||
$('.flag_preview').attr('src', "/static/custom-flags/" + board_name + "/" + $(this).val() + '.png');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user