commit
bc0b37a21f
@ -24,13 +24,18 @@ function toggle_tag( button, id ) {
|
|||||||
var string = list.val();
|
var string = list.val();
|
||||||
|
|
||||||
if( (string.indexOf(id) == 0) || (string.indexOf(":"+id) > -1) ) {
|
if( (string.indexOf(id) == 0) || (string.indexOf(":"+id) > -1) ) {
|
||||||
$(button).css('border', 'none');
|
$(button).removeClass('mass-tagger-selected');
|
||||||
string = string.replace(id, '');
|
string = string.replace(id, '');
|
||||||
list.val(string);
|
list.val(string);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$(button).css('border', '3px solid blue');
|
$(button).addClass('mass-tagger-selected');
|
||||||
string += id;
|
string += id;
|
||||||
list.val(string);
|
list.val(string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
// Clear the selection, in case it was autocompleted by the browser.
|
||||||
|
$('#mass_tagger_ids').val("");
|
||||||
|
});
|
||||||
|
3
ext/mass_tagger/style.css
Normal file
3
ext/mass_tagger/style.css
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.mass-tagger-selected {
|
||||||
|
border: 3px solid blue;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user