activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1445135 - /activemq/activemq-apollo/trunk/apollo-web/src/main/webapp/console/js/app.js
Date Tue, 12 Feb 2013 12:29:43 GMT
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");



Mime
View raw message