Fixed a bug where the "onAddTag" callback is fired before the input field is updated

This commit is contained in:
Xorrizon
2011-09-26 15:06:24 +02:00
parent f40465718b
commit fa10428b04
+2 -1
View File
@@ -58,6 +58,8 @@
$('#'+id+'_tag').blur();
}
$.fn.tagsInput.updateTagsField(this,tagslist);
if (options.callback && tags_callbacks[id] && tags_callbacks[id]['onAddTag']) {
var f = tags_callbacks[id]['onAddTag'];
f(value);
@@ -69,7 +71,6 @@
f($(this), tagslist[i]);
}
}
$.fn.tagsInput.updateTagsField(this,tagslist);
});