diff --git a/ext/mass_tagger/script.js b/ext/mass_tagger/script.js index 26b3e61c..0e4dbcd9 100644 --- a/ext/mass_tagger/script.js +++ b/ext/mass_tagger/script.js @@ -24,12 +24,12 @@ function toggle_tag( button, id ) { var string = list.val(); if( (string.indexOf(id) == 0) || (string.indexOf(":"+id) > -1) ) { - $(button).css('border', 'none'); + $(button).removeClass('mass-tagger-selected'); string = string.replace(id, ''); list.val(string); } else { - $(button).css('border', '3px solid blue'); + $(button).addClass('mass-tagger-selected'); string += id; list.val(string); } diff --git a/ext/mass_tagger/style.css b/ext/mass_tagger/style.css new file mode 100644 index 00000000..c0a2ea6c --- /dev/null +++ b/ext/mass_tagger/style.css @@ -0,0 +1,3 @@ +.mass-tagger-selected { + border: 3px solid blue; +} \ No newline at end of file