Skip to content

Commit

Permalink
Merge pull request #12 from wind13/wind13
Browse files Browse the repository at this point in the history
Add prevent default code for link click event…
  • Loading branch information
markbates committed Mar 14, 2016
2 parents 7531fd8 + 541847e commit 12fe223
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jquery-bootstrap-pagination.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@

# called when a link is clicked in the pagination list:
clicked: (event) =>
event.preventDefault()
page = parseInt($(event.target).attr("data-page"))
return unless @isValidPage(page)
# if there is a callback registered, then call it
Expand Down

0 comments on commit 12fe223

Please sign in to comment.