Former Member
inherit
guest@proboards.com
253222
0
Nov 26, 2024 14:58:58 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jun 20, 2019 11:27:58 GMT -8
Hi. Can someone please help me out by giving me a template which makes the pagination invisible if there is only one page?
Examples: If there is only one page in the thread, there won't be a pagination, if there is only one page in the threads list there won't be a pagination, if there is only one page of the messages list/messages page there won't be a pagination. The same goes with members.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jun 20, 2019 15:45:39 GMT -8
<script> /* Hide pagination When only Single Page (GLOBAL HEADER) */ $(document).on('paginationcreate', function(e){ if( $(e.target).data('pagination').pages === 1){ $('.ui-pagination').hide(); } }) </script>
|
|