Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Commit

Permalink
Tidied up code
Browse files Browse the repository at this point in the history
  • Loading branch information
beneverard committed Jun 20, 2011
1 parent c2f1f6c commit da0660f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/jqPagination.jquery.js
Expand Up @@ -175,7 +175,7 @@ http://dribbble.com/shots/59234-Pagination-for-upcoming-blog-

// apply each page number to the link string, set it back to the element href attribute
base.$el.find('a.first').attr('href', link_string.replace('{page_number}', '1'));
base.$el.find('a.previous').attr('href', link_string.replace('{page_number}', previous));
base.$el.find('a.prev, a.previous').attr('href', link_string.replace('{page_number}', previous));
base.$el.find('a.next').attr('href', link_string.replace('{page_number}', next));
base.$el.find('a.last').attr('href', link_string.replace('{page_number}', max_page));

Expand All @@ -189,10 +189,10 @@ http://dribbble.com/shots/59234-Pagination-for-upcoming-blog-
};

$.uzPagination.defaultOptions = {
page_string : 'Page {current_page} of {max_page}',
link_string : '',
current_page : 1,
link_string : '',
max_page : 1,
page_string : 'Page {current_page} of {max_page}',
paged : function () {}
};

Expand Down

0 comments on commit da0660f

Please sign in to comment.