Sha256: e51c03e20e8f58ae3e87682f193d86c08eee43ae8bdd9c231854920cdf357430
Contents?: true
Size: 580 Bytes
Versions: 11
Compression:
Stored size: 580 Bytes
Contents
@init_ajaxy_pagination = -> if typeof (window.history.pushState) == "function" $(".pagination_container .pagination a").on "click", (e) -> navigate_to = @href.replace(/(\&(amp\;)?)?from_page\=\d+/, "") navigate_to += "&from_page=" + $(".current").text() navigate_to = navigate_to.replace("?&", "?").replace(/\s+/, "") current_state_location = (location.pathname + location.href.split(location.pathname)[1]) window.history.pushState path: current_state_location, "", navigate_to $(document).paginateTo navigate_to e.preventDefault()
Version data entries
11 entries across 11 versions & 1 rubygems