浏览代码

AMBARI-2483. Jobs page: clear filter button does not appear after coming back. (Oleg Nechiporenko via yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1496716 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 年之前
父节点
当前提交
5a60d9322b
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      ambari-web/app/views/main/apps_view.js

+ 8 - 0
ambari-web/app/views/main/apps_view.js

@@ -267,6 +267,14 @@ App.MainAppsView = Em.View.extend({
    * data, and subsequently the popup dialog.
    */
   didInsertElement: function(){
+    var self = this;
+    Em.run.next(function() {
+      self.get('_childViews').forEach(function(childView) {
+        if(childView['showClearFilter']) {
+          childView.showClearFilter();
+        }
+      });
+    });
     App.router.get('mainAppsItemController').set('lastJobId', null);
     this.onChangeViewType();
   },