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',
},
checkedValue: function(e) {
var guid = "",
that = this;
var multiSelectTag = $(e.currentTarget).hasClass('assignTag');
if (multiSelectTag) {
if (this.arr && this.arr.length && multiSelectTag) {
that = this,
isTagMultiSelect = $(e.currentTarget).hasClass('multiSelectTag'),
isTermMultiSelect = $(e.currentTarget).hasClass('multiSelectTerm'),
isTagButton = $(e.currentTarget).hasClass('assignTag');
if (isTagButton) {
if (isTagMultiSelect && this.arr && this.arr.length) {
that.addTagModalView(guid, this.arr);
} else {
guid = that.$(e.currentTarget).data("guid");
that.addTagModalView(guid);
}
} else {
if (this.arr && this.arr.length) {
if (isTermMultiSelect && this.arr && this.arr.length) {
that.addTermModalView(guid, this.arr);
} else {
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