You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2013/02/12 13:29:43 UTC
svn commit: r1445135 -
/activemq/activemq-apollo/trunk/apollo-web/src/main/webapp/console/js/app.js
Author: chirino
Date: Tue Feb 12 12:29:43 2013
New Revision: 1445135
URL: http://svn.apache.org/r1445135
Log:
APLO-294: Fix problem with next button used in paging
Modified:
activemq/activemq-apollo/trunk/apollo-web/src/main/webapp/console/js/app.js
Modified: activemq/activemq-apollo/trunk/apollo-web/src/main/webapp/console/js/app.js
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-web/src/main/webapp/console/js/app.js?rev=1445135&r1=1445134&r2=1445135&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-web/src/main/webapp/console/js/app.js (original)
+++ activemq/activemq-apollo/trunk/apollo-web/src/main/webapp/console/js/app.js Tue Feb 12 12:29:43 2013
@@ -114,7 +114,7 @@ App.PagedArrayController = Ember. ArrayC
next:function() {
var total_pages = this.get("total_pages");
var page = this.get("page");
- this.set("page", Math.max(total_pages, page+1))
+ this.set("page", Math.min(total_pages, page+1))
},
prev:function() {
var page = this.get("page");