Author: srimanth
Date: Thu Jan 31 21:53:30 2013
New Revision: 1441215

URL: http://svn.apache.org/viewvc?rev=1441215&view=rev
Log:
AMBARI-1324. Job Browser default sort order should be Run Date DESC. (srimanth)

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

Modified: incubator/ambari/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1441215&r1=1441214&r2=1441215&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Thu Jan 31 21:53:30 2013
@@ -217,6 +217,8 @@ Trunk (unreleased changes):
 
  BUG FIXES
 
+ AMBARI-1324. Job Browser default sort order should be Run Date DESC. 
(srimanth)
+ 
  AMBARI-1323. Job Browser's column sizing needs to be improved on Firefox. 
(srimanth)
 
  AMBARI-1321. Switching out of Jobs page does not launch popup anymore.

Modified: incubator/ambari/trunk/ambari-web/app/views/main/apps_view.js
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/views/main/apps_view.js?rev=1441215&r1=1441214&r2=1441215&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/views/main/apps_view.js (original)
+++ incubator/ambari/trunk/ambari-web/app/views/main/apps_view.js Thu Jan 31 
21:53:30 2013
@@ -103,8 +103,14 @@ App.MainAppsView = Em.View.extend({
     class: "sorting",
     widthClass: "",
     content: null,
+    defaultColumn: 8,
+
     didInsertElement: function () {
       this.set("widthClass", "col" + this.content.index);
+      if (this.content.index == this.defaultColumn) {
+        this.setControllerObj(this.content.index, "DESC");
+        this.set("class", "sorting_desc");
+      }
     },
     click: function (event) {
       console.log(this.class);


Reply via email to