You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by gn...@apache.org on 2017/01/18 11:35:05 UTC
ambari git commit: AMBARI-19606. Search button is not functional in
the dashboard(Padma Priya N via gauravn7)
Repository: ambari
Updated Branches:
refs/heads/branch-2.5 da0c9732d -> 4fb628cf4
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/4fb628cf
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4fb628cf
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4fb628cf
Branch: refs/heads/branch-2.5
Commit: 4fb628cf4bbb6262a074c3c0b8fec5c52a8d2556
Parents: da0c973
Author: Gaurav Nagar <gr...@gmail.com>
Authored: Wed Jan 18 17:04:50 2017 +0530
Committer: Gaurav Nagar <gr...@gmail.com>
Committed: Wed Jan 18 17:04:50 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/4fb628cf/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/4fb628cf/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'>