[extensions-web] js: Fix paginator building on right
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] js: Fix paginator building on right
- Date: Sun, 1 Apr 2012 13:40:51 +0000 (UTC)
commit ec80ffd0c6b279d18092468f159df8a2f74d4a7f
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sun Apr 1 09:40:34 2012 -0400
js: Fix paginator building on right
We accidentally put one too many items on the right
sweettooth/static/js/paginatorUtils.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/static/js/paginatorUtils.js b/sweettooth/static/js/paginatorUtils.js
index 61ebe7a..b81a392 100644
--- a/sweettooth/static/js/paginatorUtils.js
+++ b/sweettooth/static/js/paginatorUtils.js
@@ -19,7 +19,7 @@ define(['jquery', 'hashParamUtils'], function($, hashParamUtils) {
exports.buildPaginator = function(page, numPages, context) {
var number = page;
var contextLeft = Math.max(number-context, 2);
- var contextRight = Math.min(number+context+2, numPages);
+ var contextRight = Math.min(number+context+1, numPages);
var $elem = $('<div>', {'class': 'paginator-content'});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]