mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
17 lines
469 B
JavaScript
17 lines
469 B
JavaScript
$(document).ready(function () {
|
|
if(typeof tag_fields !== "undefined")
|
|
{
|
|
$.each(tag_fields, function (a, tag) {
|
|
tag.DOM.input.addEventListener('keyup', function (event) {
|
|
var is_zero = tag.getTagIndexByValue('0');
|
|
if (is_zero.length > 0) {
|
|
tag.removeTag(tag.getTagElmByValue('0'))
|
|
tag.addTags([{value: "zero"}]);
|
|
}
|
|
});
|
|
})
|
|
}
|
|
});
|
|
|
|
|