laravelEcomm/public/Dashboard/js/paginate.js

23 lines
491 B
JavaScript
Raw Normal View History

2024-07-12 07:06:02 +00:00
(function($) {
'use strict';
if ($('#pagination-demo').length) {
$('#pagination-demo').twbsPagination({
totalPages: 35,
visiblePages: 7,
onPageClick: function(event, page) {
$('#page-content').text('Page ' + page);
}
});
}
if ($('.sync-pagination').length) {
$('.sync-pagination').twbsPagination({
totalPages: 20,
onPageClick: function(evt, page) {
$('#content').text('Page ' + page);
}
});
}
})(jQuery);