瀏覽代碼

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 年之前
父節點
當前提交
91201a2568
共有 2 個文件被更改,包括 8 次插入0 次删除
  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);