diff --git a/js/jquery.simplePagination.js b/js/jquery.simplePagination.js index d73b577..bc97801 100644 --- a/js/jquery.simplePagination.js +++ b/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($){ @@ -193,7 +193,7 @@ } } if (o.edges < interval.start && (interval.start - o.edges != 1)) { - $panel.append('
  • ' + o.ellipseText + '
  • '); + $panel.append('
  • ' + o.ellipseText + '
  • '); } else if (interval.start - o.edges == 1) { methods._appendItem.call(this, o.edges); } @@ -208,7 +208,7 @@ } if (o.pages - o.edges > interval.end && (o.pages - o.edges - interval.end != 1)) { - $panel.append('
  • ' + o.ellipseText + '
  • '); + $panel.append('
  • ' + o.ellipseText + '
  • '); } else if (o.pages - o.edges - interval.end == 1) { methods._appendItem.call(this, interval.end); } @@ -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('
  • ' + o.ellipseText + '
  • '); + $panel.append('
  • ' + o.ellipseText + '
  • '); } else if (o.pages - o.edges - interval.end == 1) { methods._appendItem.call(this, interval.end); } @@ -244,7 +244,7 @@ } else { if (interval.start > 0 && o.edges > 0) { if (o.edges < interval.start && (interval.start - o.edges != 1)) { - $panel.append('
  • ' + o.ellipseText + '
  • '); + $panel.append('
  • ' + o.ellipseText + '
  • '); } else if (interval.start - o.edges == 1) { methods._appendItem.call(this, o.edges); } @@ -303,7 +303,7 @@ } else { $linkWrapper.addClass('active'); } - $link = $('' + (options.text) + ''); + $link = $('' + (options.text) + ''); } else { $link = $('' + (options.text) + ''); $link.click(function(event){ @@ -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); @@ -390,4 +390,4 @@ }; -})(jQuery); +})(jQuery); \ No newline at end of file