Selaa lähdekoodia

AMBARI-1221. There is no default sort order on Hosts table and the order changes on every page refresh - should sort by hostname. (yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1435442 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 vuotta sitten
vanhempi
commit
12c2335706
2 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 3 0
      CHANGES.txt
  2. 2 1
      ambari-web/app/views/main/host.js

+ 3 - 0
CHANGES.txt

@@ -17,6 +17,9 @@ Trunk (unreleased changes):
 
 
  IMPROVEMENTS
  IMPROVEMENTS
 
 
+ AMBARI-1221. There is no default sort order on Hosts table and the order
+ changes on every page refresh - should sort by hostname. (yusaku)
+
  AMBARI-1220. Oozie service summary update. (yusaku)
  AMBARI-1220. Oozie service summary update. (yusaku)
 
 
  AMBARI-1218. Refactor Job Browser User filter. (yusaku)
  AMBARI-1218. Refactor Job Browser User filter. (yusaku)

+ 2 - 1
ambari-web/app/views/main/host.js

@@ -59,7 +59,8 @@ App.MainHostView = Em.View.extend({
         { "sType":"html", "bSortable": false  },
         { "sType":"html", "bSortable": false  },
         { "bVisible": false }, // hidden column for raw public host name value
         { "bVisible": false }, // hidden column for raw public host name value
         { "bVisible": false } // hidden column for raw components list
         { "bVisible": false } // hidden column for raw components list
-      ]
+      ],
+      "aaSorting": [[ 1, "asc" ]]
     });
     });
     this.set('oTable', oTable);
     this.set('oTable', oTable);
     this.set('allComponentsChecked', true); // select all components (checkboxes) on start.
     this.set('allComponentsChecked', true); // select all components (checkboxes) on start.