Forráskód Böngészése

AMBARI-2419. Jobs page: wrong behavior for switching between All and Filtered. (Oleg Nechiporenko via yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1494395 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 éve
szülő
commit
3d3ae0dc84

+ 1 - 1
ambari-web/app/templates/main/apps.hbs

@@ -53,7 +53,7 @@
   <div class="filter_info">
 
     <div class="span4" id="filter_buttons">{{t common.show}}:
-      <a class="all selected" {{action "clickViewType" target="view"}} data-view-type="all">{{t apps.filters.all}}
+      <a class="all" {{action "clickViewType" target="view"}} data-view-type="all">{{t apps.filters.all}}
         ({{controller.paginationObject.iTotalRecords}})</a> &#124;
       <a class="filtered" {{action "clickViewType" target="view"}} data-view-type="filtered">{{t apps.filters.filtered}}
         ({{controller.filterObject.filteredDisplayRecords}})</a>

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

@@ -268,6 +268,7 @@ App.MainAppsView = Em.View.extend({
    */
   didInsertElement: function(){
     App.router.get('mainAppsItemController').set('lastJobId', null);
+    this.onChangeViewType();
   },
   /**
    *