You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by nc...@apache.org on 2017/01/18 15:58:21 UTC
[48/50] [abbrv] ambari git commit: AMBARI-19606. Search button is not
functional in the dashboard(Padma Priya N via gauravn7)
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/branch-dev-patch-upgrade
Commit: 61d0f640b0d647b9c196f60dcd09b41adba05504
Parents: f7155d9
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: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'>