فهرست منبع

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"){
     if(this.get("filterObject.viewType") == "filtered"){
       this.set("runUrl", link);
       this.set("runUrl", link);
     }else{
     }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');
     var timeout = this.get('runTimeout');