You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2013/06/26 04:43:05 UTC

svn commit: r1496717 - /incubator/ambari/branches/branch-1.2.5/ambari-web/app/views/main/apps_view.js

Author: yusaku
Date: Wed Jun 26 02:43:05 2013
New Revision: 1496717

URL: http://svn.apache.org/r1496717
Log:
AMBARI-2483. Jobs page: clear filter button does not appear after coming back. (Oleg Nechiporenko via yusaku)

Modified:
    incubator/ambari/branches/branch-1.2.5/ambari-web/app/views/main/apps_view.js

Modified: incubator/ambari/branches/branch-1.2.5/ambari-web/app/views/main/apps_view.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/branch-1.2.5/ambari-web/app/views/main/apps_view.js?rev=1496717&r1=1496716&r2=1496717&view=diff
==============================================================================
--- incubator/ambari/branches/branch-1.2.5/ambari-web/app/views/main/apps_view.js (original)
+++ incubator/ambari/branches/branch-1.2.5/ambari-web/app/views/main/apps_view.js Wed Jun 26 02:43:05 2013
@@ -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();
   },