Sha256: 358a8265e91bcf301f52d6386ec6999f478eefe05c5c7a684b491e4c86e14853
Contents?: true
Size: 831 Bytes
Versions: 11
Compression:
Stored size: 831 Bytes
Contents
@init_ajaxy_pagination = -> if typeof (window.history.pushState) == "function" and $(".pagination_container").length > 0 pagination_pages = $(".pagination_container .pagination a") pagination_pages.live "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() $(".pagination_container").applyMinimumHeightFromChildren() $(".pagination_frame").css "top", "0px" if $(".pagination_container").find(".pagination").length == 0
Version data entries
11 entries across 11 versions & 1 rubygems