瀏覽代碼

AMBARI-2627. Jobs page: Run Date sorting are not applied when switching between All and Filtered. (Aleksandr Kovalenko via yusaku)

Yusaku Sako 12 年之前
父節點
當前提交
6573ac0d5a
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      ambari-web/app/controllers/main/apps_controller.js

+ 2 - 1
ambari-web/app/controllers/main/apps_controller.js

@@ -379,7 +379,8 @@ App.MainAppsController = Em.ArrayController.extend({
     if(this.get("filterObject.viewType") == "filtered"){
       this.set("runUrl", link);
     }else{
-      this.set("runUrl",  "/jobhistory/datatable?iDisplayStart="+this.get('filterObject.iDisplayStart')+"&iDisplayLength="+this.get('filterObject.iDisplayLength'));
+      this.set("runUrl", "/jobhistory/datatable?iDisplayStart=" + this.get('filterObject.iDisplayStart') + "&iDisplayLength=" + this.get('filterObject.iDisplayLength') +
+         '&iSortCol_0=' + this.get('filterObject.iSortCol_0') + '&sSortDir_0=' + this.get('filterObject.sSortDir_0'));
     }
 
     var timeout = this.get('runTimeout');