You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2013/06/05 19:03:15 UTC
svn commit: r1489960 -
/incubator/ambari/trunk/ambari-web/app/controllers/main/apps_controller.js
Author: yusaku
Date: Wed Jun 5 17:03:15 2013
New Revision: 1489960
URL: http://svn.apache.org/r1489960
Log:
AMBARI-2291. Incorrect behavior of jobs paging. (Oleg Nechiporenko via yusaku)
Modified:
incubator/ambari/trunk/ambari-web/app/controllers/main/apps_controller.js
Modified: incubator/ambari/trunk/ambari-web/app/controllers/main/apps_controller.js
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/main/apps_controller.js?rev=1489960&r1=1489959&r2=1489960&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/controllers/main/apps_controller.js (original)
+++ incubator/ambari/trunk/ambari-web/app/controllers/main/apps_controller.js Wed Jun 5 17:03:15 2013
@@ -371,12 +371,15 @@ App.MainAppsController = Em.ArrayControl
runTimeout : null,
valueObserver: function(){
+ if(this.get('filterObject.iDisplayLength') > this.get('content.length')) {
+ this.set('filterObject.iDisplayStart', 0);
+ }
var link = this.get('filterObject').createAppLink();
if(this.get("filterObject.viewType") == "filtered"){
this.set("runUrl", link);
}else{
- this.set("runUrl", "/jobhistory/datatable?iDisplayLength="+this.get('filterObject.iDisplayLength'));
+ this.set("runUrl", "/jobhistory/datatable?iDisplayStart="+this.get('filterObject.iDisplayStart')+"&iDisplayLength="+this.get('filterObject.iDisplayLength'));
}
var timeout = this.get('runTimeout');