mirror of
https://github.com/wahyd4/jQuery-Tags-Input.git
synced 2026-08-10 13:26:34 +10:00
Call the 'onChange' function when a tag is added.
This commit is contained in:
@@ -53,6 +53,12 @@
|
||||
var f = tags_callbacks[id]['onAddTag'];
|
||||
f(value);
|
||||
}
|
||||
if(tags_callbacks[id] && tags_callbacks[id]['onChange'])
|
||||
{
|
||||
var i = tagslist.length;
|
||||
var f = tags_callbacks[id]['onChange'];
|
||||
f($(this), tagslist[i]);
|
||||
}
|
||||
}
|
||||
$.fn.tagsInput.updateTagsField(this,tagslist);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user