|
@@ -18,7 +18,7 @@ PaginatorUpdater.prototype = {
|
|
|
|
|
|
if ($.trim($node.text()) == '...') {
|
|
if ($.trim($node.text()) == '...') {
|
|
$node.wrap($('<span>').addClass('disabled'));
|
|
$node.wrap($('<span>').addClass('disabled'));
|
|
- } else {
|
|
|
|
|
|
+ } else if ($.trim($node.text()) == '') {
|
|
$node.remove();
|
|
$node.remove();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -30,7 +30,8 @@ PaginatorUpdater.prototype = {
|
|
var $pageNodes = $([]);
|
|
var $pageNodes = $([]);
|
|
|
|
|
|
this.$paginator.contents().each(function() {
|
|
this.$paginator.contents().each(function() {
|
|
- var pageNode = this.tagName == 'A' || this.tagName == 'SPAN';
|
|
|
|
|
|
+ var $node = $(this);
|
|
|
|
+ var pageNode = (this.tagName == 'A' && !$node.hasClass('showall')) || this.tagName == 'SPAN';
|
|
|
|
|
|
if (pageNode) {
|
|
if (pageNode) {
|
|
foundPage = true;
|
|
foundPage = true;
|
|
@@ -41,8 +42,6 @@ PaginatorUpdater.prototype = {
|
|
}
|
|
}
|
|
|
|
|
|
if (pageNode && !pagesEnded) {
|
|
if (pageNode && !pagesEnded) {
|
|
- var $node = $(this);
|
|
|
|
-
|
|
|
|
$node.detach();
|
|
$node.detach();
|
|
$pageNodes = $pageNodes.add($node);
|
|
$pageNodes = $pageNodes.add($node);
|
|
} else {
|
|
} else {
|
|
@@ -57,13 +56,12 @@ PaginatorUpdater.prototype = {
|
|
var $nodes = $([]);
|
|
var $nodes = $([]);
|
|
|
|
|
|
this.$paginator.contents().each(function() {
|
|
this.$paginator.contents().each(function() {
|
|
- var pageNode = this.tagName == 'A' || this.tagName == 'SPAN';
|
|
|
|
|
|
+ var $node = $(this);
|
|
|
|
+ var pageNode = (this.tagName == 'A' && !$node.hasClass('showall')) || this.tagName == 'SPAN';
|
|
|
|
|
|
if (pageNode) {
|
|
if (pageNode) {
|
|
foundPage = true;
|
|
foundPage = true;
|
|
} else if (foundPage && !pageNode && this.tagName != 'INPUT') {
|
|
} else if (foundPage && !pageNode && this.tagName != 'INPUT') {
|
|
- var $node = $(this);
|
|
|
|
-
|
|
|
|
$node.detach();
|
|
$node.detach();
|
|
$nodes = $nodes.add($node);
|
|
$nodes = $nodes.add($node);
|
|
}
|
|
}
|