Skip to content

Commit 7a4fcd7

Browse files
author
Assem Chelli
committed
Merge branch 'fix-pagination-display' of github.com:cobia/django-jet-reboot into cobia_build
2 parents 6c9a93d + 4302205 commit 7a4fcd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jet/static/jet/js/src/layout-updaters/paginator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ PaginatorUpdater.prototype = {
1616
if (($node.prev().prop('tagName') == 'A' || $node.prev().prop('tagName') == 'SPAN')
1717
&& ($node.next().prop('tagName') == 'A' || $node.next().prop('tagName') == 'SPAN')) {
1818

19-
if ($.trim($node.text()) == '...') {
19+
if ($node.text().trim() == '...' || $node.text().trim() == '') {
2020
$node.wrap($('<span>').addClass('disabled'));
21-
} else if ($.trim($node.text()) == '') {
21+
} else if ($node.text().trim() == '') {
2222
$node.remove();
2323
}
2424
}

0 commit comments

Comments
 (0)