Commit a78b9c00 by pratik24mac Committed by nixonrodrigues

ATLAS-2300 : UI - Delete Tag is not functioning from Entity Details page

parent 7892a331
...@@ -281,7 +281,8 @@ define(['require', ...@@ -281,7 +281,8 @@ define(['require',
modal.on('ok', function() { modal.on('ok', function() {
that.deleteTagData({ that.deleteTagData({
'tagName': tagName, 'tagName': tagName,
'guid': that.id 'guid': that.id,
'el' : $(e.currentTarget)
}); });
}); });
modal.on('closeModal', function() { modal.on('closeModal', function() {
...@@ -291,7 +292,7 @@ define(['require', ...@@ -291,7 +292,7 @@ define(['require',
}, },
deleteTagData: function(options) { deleteTagData: function(options) {
var that = this, var that = this,
tagName = $(e.currentTarget).text(); tagName = options.el.text();
Utils.showTitleLoader(this.$('.page-title .fontLoader'), this.$('.entityDetail')); Utils.showTitleLoader(this.$('.page-title .fontLoader'), this.$('.entityDetail'));
CommonViewFunction.deleteTag(_.extend({}, options, { CommonViewFunction.deleteTag(_.extend({}, options, {
callback: function() { callback: function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment