[extensions-web/ui-cleanup: 11/12] paginator: Use the appropriate chevron arrows
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web/ui-cleanup: 11/12] paginator: Use the appropriate chevron arrows
- Date: Mon, 9 Jan 2012 21:30:09 +0000 (UTC)
commit cafe28314b2d7da27e9aba5f4a0493bb094c715d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Jan 2 15:51:25 2012 -0500
paginator: Use the appropriate chevron arrows
Instead of the words "Previous" and "Next", use the appropriate chevron
characters. Since the characters are the same widths, we shouldn't become
unbalanced.
sweettooth/static/js/paginator.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/static/js/paginator.js b/sweettooth/static/js/paginator.js
index a62157a..0015511 100644
--- a/sweettooth/static/js/paginator.js
+++ b/sweettooth/static/js/paginator.js
@@ -104,7 +104,7 @@ define(['jquery', 'jquery.hashchange'], function($) {
var $elem = $('<div>', {'class': 'paginator-content'});
if (number > 1) {
- makeLink(number-1, 'prev', "Previous").appendTo($elem);
+ makeLink(number-1, 'prev', '\u00ab').appendTo($elem);
makeLink(1, 'first').appendTo($elem);
if (number-context > 2)
$elem.append($('<span>', {'class': 'ellipses'}).text("..."));
@@ -123,7 +123,7 @@ define(['jquery', 'jquery.hashchange'], function($) {
$elem.append($('<span>', {'class': 'ellipses'}).text("..."));
makeLink(numPages, 'last').appendTo($elem);
- makeLink(number+1, 'prev', "Next").appendTo($elem);
+ makeLink(number+1, 'prev', '\u00bb').appendTo($elem);
}
return $('<div>', {'class': 'paginator'}).append($elem);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]