josecebe / twbs-pagination

jQuery pagination plugin (bootstrap powered)
http://josecebe.github.io/twbs-pagination/
Other
1.1k stars 401 forks source link

Paging function runs when pager initialized. Don't want it to #64

Closed versute closed 8 years ago

versute commented 8 years ago

I am getting the results of the first page through AJAX, then creating the paging control. The function that is to run on page changed gets run, causing my app to do the exact search over again. How do I prevent the function from executing when it initializes? I only want it to run when a paging control is clicked, not when it's first created.

pavelthq commented 8 years ago

initiateStartPageClick: false

versute commented 8 years ago

Perfect, thanks!