Browse Source

AMBARI-1324. Job Browser default sort order should be Run Date DESC. (srimanth)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1441215 13f79535-47bb-0310-9956-ffa450edef68
Srimanth 12 years ago
parent
commit
91201a2568
2 changed files with 8 additions and 0 deletions
  1. 2 0
      CHANGES.txt
  2. 6 0
      ambari-web/app/views/main/apps_view.js

+ 2 - 0
CHANGES.txt

@@ -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.

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

@@ -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);