Commit 363b88cf by kevalbhatt Committed by nixonrodrigues

ATLAS-1808:UI : All selected entities are assigned to tag when Assign Tag…

ATLAS-1808:UI : All selected entities are assigned to tag when Assign Tag corresponding to 1 entity is clicked. Signed-off-by: 's avatarnixonrodrigues <nixon@apache.org>
parent e483712b
...@@ -513,17 +513,19 @@ define(['require', ...@@ -513,17 +513,19 @@ define(['require',
}, },
checkedValue: function(e) { checkedValue: function(e) {
var guid = "", var guid = "",
that = this; that = this,
var multiSelectTag = $(e.currentTarget).hasClass('assignTag'); isTagMultiSelect = $(e.currentTarget).hasClass('multiSelectTag'),
if (multiSelectTag) { isTermMultiSelect = $(e.currentTarget).hasClass('multiSelectTerm'),
if (this.arr && this.arr.length && multiSelectTag) { isTagButton = $(e.currentTarget).hasClass('assignTag');
if (isTagButton) {
if (isTagMultiSelect && this.arr && this.arr.length) {
that.addTagModalView(guid, this.arr); that.addTagModalView(guid, this.arr);
} else { } else {
guid = that.$(e.currentTarget).data("guid"); guid = that.$(e.currentTarget).data("guid");
that.addTagModalView(guid); that.addTagModalView(guid);
} }
} else { } else {
if (this.arr && this.arr.length) { if (isTermMultiSelect && this.arr && this.arr.length) {
that.addTermModalView(guid, this.arr); that.addTermModalView(guid, this.arr);
} else { } else {
guid = that.$(e.currentTarget).data("guid"); guid = that.$(e.currentTarget).data("guid");
......
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