Author: yusaku
Date: Sat Jan 19 01:26:47 2013
New Revision: 1435442

URL: http://svn.apache.org/viewvc?rev=1435442&view=rev
Log:
AMBARI-1221. There is no default sort order on Hosts table and the order 
changes on every page refresh - should sort by hostname. (yusaku)

Modified:
    incubator/ambari/trunk/CHANGES.txt
    incubator/ambari/trunk/ambari-web/app/views/main/host.js

Modified: incubator/ambari/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1435442&r1=1435441&r2=1435442&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Sat Jan 19 01:26:47 2013
@@ -17,6 +17,9 @@ Trunk (unreleased changes):
 
  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-1218. Refactor Job Browser User filter. (yusaku)

Modified: incubator/ambari/trunk/ambari-web/app/views/main/host.js
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/views/main/host.js?rev=1435442&r1=1435441&r2=1435442&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/views/main/host.js (original)
+++ incubator/ambari/trunk/ambari-web/app/views/main/host.js Sat Jan 19 
01:26:47 2013
@@ -59,7 +59,8 @@ App.MainHostView = Em.View.extend({
         { "sType":"html", "bSortable": false  },
         { "bVisible": false }, // hidden column for raw public host name value
         { "bVisible": false } // hidden column for raw components list
-      ]
+      ],
+      "aaSorting": [[ 1, "asc" ]]
     });
     this.set('oTable', oTable);
     this.set('allComponentsChecked', true); // select all components 
(checkboxes) on start.


Reply via email to