You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by pp...@apache.org on 2017/04/28 05:42:50 UTC
ambari git commit: AMBARI-20850. WFM: Clicking search icon in
workflow dashboard throws error. (Anita Gnanamalar Jebaraj via
padmapriyanitt)
Repository: ambari
Updated Branches:
refs/heads/trunk 7fe8fbc96 -> 9631cbde4
AMBARI-20850. WFM: Clicking search icon in workflow dashboard throws error. (Anita Gnanamalar Jebaraj via padmapriyanitt)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/9631cbde
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/9631cbde
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/9631cbde
Branch: refs/heads/trunk
Commit: 9631cbde402eb68ee0c38e4f84261c580c5e69fd
Parents: 7fe8fbc
Author: padmapriyanitt <pa...@gmail.com>
Authored: Fri Apr 28 11:00:31 2017 +0530
Committer: padmapriyanitt <pa...@gmail.com>
Committed: Fri Apr 28 11:00:31 2017 +0530
----------------------------------------------------------------------
.../main/resources/ui/app/components/search-create-new-bar.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/9631cbde/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 7e69dea..4bfb5fa 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,7 +189,10 @@ export default Ember.Component.extend(Ember.Evented,{
this.sendAction('onSearch', { type: type, filter: filter });
},
onSearchClicked(){
- this.$('#search-field').tagsinput('add', 'Name:'+this.$('.tt-input').val());
+ var searchValue=this.$('.tt-input').val();
+ if(!Ember.isBlank(searchValue)) {
+ this.$('#search-field').tagsinput('add', 'Name:'+searchValue);
+ }
},
refresh(){
this.sendAction('onSearch', this.get('history').getSearchParams());