ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gna...@apache.org
Subject ambari git commit: AMBARI-19606. Search button is not functional in the dashboard(Padma Priya N via gauravn7)
Date Wed, 18 Jan 2017 11:35:43 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk f7155d9c4 -> 61d0f640b


AMBARI-19606. Search button is not functional in the dashboard(Padma Priya N via gauravn7)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/61d0f640
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/61d0f640
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/61d0f640

Branch: refs/heads/trunk
Commit: 61d0f640b0d647b9c196f60dcd09b41adba05504
Parents: f7155d9
Author: Gaurav Nagar <grvngr@gmail.com>
Authored: Wed Jan 18 17:04:50 2017 +0530
Committer: Gaurav Nagar <grvngr@gmail.com>
Committed: Wed Jan 18 17:05:30 2017 +0530

----------------------------------------------------------------------
 .../src/main/resources/ui/app/components/search-create-new-bar.js | 3 +++
 .../ui/app/templates/components/search-create-new-bar.hbs         | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/61d0f640/contrib/views/wfmanager/src/main/resources/ui/app/components/search-create-new-bar.js
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/components/search-create-new-bar.js
b/contrib/views/wfmanager/src/main/resources/ui/app/components/search-create-new-bar.js
index f9226f4..e9bc44f 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/components/search-create-new-bar.js
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/components/search-create-new-bar.js
@@ -189,6 +189,9 @@ export default Ember.Component.extend(Ember.Evented,{
             elem.addClass("btn-primary");
             this.sendAction('onSearch', { type: type, filter: filter });
         },
+        onSearchClicked(){
+          this.$('#search-field').tagsinput('add', 'Name:'+this.$('.tt-input').val());
+        },
         refresh(){
           this.sendAction('onSearch', this.get('history').getSearchParams());
         },

http://git-wip-us.apache.org/repos/asf/ambari/blob/61d0f640/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/search-create-new-bar.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/search-create-new-bar.hbs
b/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/search-create-new-bar.hbs
index 33539ea..80f3b14 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/search-create-new-bar.hbs
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/search-create-new-bar.hbs
@@ -28,7 +28,7 @@
         </ul>
       </div>
       <input id="search-field" type="text" class="form-control" data-role="tagsinput"
placeholder="Filter(Eg:name:workflowname)" aria-describedby="basic-addon1">
-      <div class="search-icon"><i class="fa fa-search"></i></div>
+      <div class="search-icon" {{action 'onSearchClicked'}}><i class="fa fa-search"></i></div>
     </div>
   </div>
   <div class='form-group date-picker'>


Mime
View raw message