-
Notifications
You must be signed in to change notification settings - Fork 399
Open
Description
Hi
I tried to disable "default click" action, but there wan't any way to disable so that I could run my own command on clicking.
In documentation "http://flaviusmatis.github.com/simplePagination.js/" I couldn't find any option but then I opened JS file..
https://github.com/flaviusmatis/simplePagination.js/blob/master/jquery.simplePagination.js
and there I saw "useAnchors" a boolean.. to disable/enable "default click action". I added in my code.
$('.pagination_container').pagination({
pages: total_pages,
cssStyle: 'dark-theme',
displayedPages: 5,
hrefTextPrefix: '',
useAnchors:false,
currentPage:pageno,
edges: 2,
onPageClick: function (page, event) {
filterSearchQueryArray['paged'] = page;
pushToHistory(true, filterSearchQueryArray);
}
});
... then I was able to run my custom function only.
Metadata
Metadata
Assignees
Labels
No labels