Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update docs (alt pagination) +++
Reverting jquery.simplePagination.js to it original state
  • Loading branch information
Eugene Simakin committed Oct 9, 2016
1 parent ee02683 commit 18f62e9
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions js/jquery.simplePagination.js
@@ -1,12 +1,12 @@
/**
* simplePagination.js v1.6
* A simple jQuery pagination plugin.
* http://flaviusmatis.github.com/simplePagination.js/
*
* Copyright 2012, Flavius Matis
* Released under the MIT license.
* http://flaviusmatis.github.com/license.html
*/
* simplePagination.js v1.6
* A simple jQuery pagination plugin.
* http://flaviusmatis.github.com/simplePagination.js/
*
* Copyright 2012, Flavius Matis
* Released under the MIT license.
* http://flaviusmatis.github.com/license.html
*/

(function($){

Expand Down Expand Up @@ -193,7 +193,7 @@
}
}
if (o.edges < interval.start && (interval.start - o.edges != 1)) {
$panel.append('<li class="disabled"><a class="ellipse">' + o.ellipseText + '</a></li>');
$panel.append('<li class="disabled"><span class="ellipse">' + o.ellipseText + '</span></li>');
} else if (interval.start - o.edges == 1) {
methods._appendItem.call(this, o.edges);
}
Expand All @@ -208,7 +208,7 @@
}

if (o.pages - o.edges > interval.end && (o.pages - o.edges - interval.end != 1)) {
$panel.append('<li class="disabled"><a class="ellipse">' + o.ellipseText + '</a></li>');
$panel.append('<li class="disabled"><span class="ellipse">' + o.ellipseText + '</span></li>');
} else if (o.pages - o.edges - interval.end == 1) {
methods._appendItem.call(this, interval.end);
}
Expand All @@ -230,7 +230,7 @@
if (!o.invertPageOrder) {
if (interval.end < o.pages && o.edges > 0) {
if (o.pages - o.edges > interval.end && (o.pages - o.edges - interval.end != 1)) {
$panel.append('<li class="disabled"><a class="ellipse">' + o.ellipseText + '</a></li>');
$panel.append('<li class="disabled"><span class="ellipse">' + o.ellipseText + '</span></li>');
} else if (o.pages - o.edges - interval.end == 1) {
methods._appendItem.call(this, interval.end);
}
Expand All @@ -244,7 +244,7 @@
} else {
if (interval.start > 0 && o.edges > 0) {
if (o.edges < interval.start && (interval.start - o.edges != 1)) {
$panel.append('<li class="disabled"><a class="ellipse">' + o.ellipseText + '</a></li>');
$panel.append('<li class="disabled"><span class="ellipse">' + o.ellipseText + '</span></li>');
} else if (interval.start - o.edges == 1) {
methods._appendItem.call(this, o.edges);
}
Expand Down Expand Up @@ -303,7 +303,7 @@
} else {
$linkWrapper.addClass('active');
}
$link = $('<a class="current">' + (options.text) + '</a>');
$link = $('<span class="current">' + (options.text) + '</span>');
} else {
$link = $('<a href="' + o.hrefTextPrefix + (pageIndex + 1) + o.hrefTextSuffix + '" class="page-link">' + (options.text) + '</a>');
$link.click(function(event){
Expand Down Expand Up @@ -356,7 +356,7 @@
if (event.which === 13 && val !== '') {
// enter to accept
if ((val>0)&&(val<=o.pages))
methods._selectPage.call(self, val - 1);
methods._selectPage.call(self, val - 1);
} else if (event.which === 27) {
// escape to cancel
$ellip.empty().html(o.ellipseText);
Expand Down Expand Up @@ -390,4 +390,4 @@

};

})(jQuery);
})(jQuery);

0 comments on commit 18f62e9

Please sign in to comment.