Skip to content

"beforeDeletingTag" function(tag), always return last tag name. #73

@milpas999

Description

@milpas999

"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');
}
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions