atlas-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ni...@apache.org
Subject [2/5] incubator-atlas git commit: ATLAS-1808:UI : All selected entities are assigned to tag when Assign Tag corresponding to 1 entity is clicked.
Date Sun, 28 May 2017 05:30:29 GMT
ATLAS-1808:UI : All selected entities are assigned to tag when Assign Tag corresponding to
1 entity is clicked.

Signed-off-by: nixonrodrigues <nixon@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/aa9ea966
Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/aa9ea966
Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/aa9ea966

Branch: refs/heads/0.8-incubating
Commit: aa9ea966bded4e64a8482b8a6ca53e509afb33c3
Parents: 55a17db
Author: kevalbhatt <kbhatt@apache.org>
Authored: Fri May 19 18:56:52 2017 +0530
Committer: nixonrodrigues <nixon@apache.org>
Committed: Sun May 28 10:57:43 2017 +0530

----------------------------------------------------------------------
 .../public/js/views/search/SearchResultLayoutView.js    | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/aa9ea966/dashboardv2/public/js/views/search/SearchResultLayoutView.js
----------------------------------------------------------------------
diff --git a/dashboardv2/public/js/views/search/SearchResultLayoutView.js b/dashboardv2/public/js/views/search/SearchResultLayoutView.js
index cf751e8..25df9b5 100644
--- a/dashboardv2/public/js/views/search/SearchResultLayoutView.js
+++ b/dashboardv2/public/js/views/search/SearchResultLayoutView.js
@@ -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");


Mime
View raw message