-
Notifications
You must be signed in to change notification settings - Fork 132
Description
"beforeDeletingTag" is returning only the last tag that is entered, I want to display confirm box when user tried to delete any tag.
Check my below code
tags = $("#maxNumTags").tags({
maxNumTags: 10,
tagData: mentor_tags,
afterAddingTag: function (tag) {
updateOrganizationTag(tag, 'add');
},
beforeDeletingTag: function (tag) {
if (!confirm('Are you sure you want to delete tag: ' + tag)) {
return false;
}
},
afterDeletingTag: function (tag) {
updateOrganizationTag(tag, 'delete');
}
});