mirror of
https://github.com/wahyd4/jQuery-Tags-Input.git
synced 2026-08-09 04:46:44 +10:00
If a callback has been specified, call it when a tag is added.
This commit is contained in:
@@ -50,6 +50,11 @@
|
||||
} else {
|
||||
$('#'+id+'_tag').blur();
|
||||
}
|
||||
|
||||
if (options.callback && tags_callbacks[id] && tags_callbacks[id]['onAddTag']) {
|
||||
var f = tags_callbacks[id]['onAddTag'];
|
||||
f(value);
|
||||
}
|
||||
}
|
||||
jQuery.fn.tagsInput.updateTagsField(this,tagslist);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user