Created
October 15, 2012 09:48
-
-
Save azrad/3891744 to your computer and use it in GitHub Desktop.
Bootstrap update paging html for CakePHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function() { | |
current_page = $("div.pagination ul li.current").html(); | |
$('div.pagination ul li.current').addClass('active').html("<span>"+current_page+"</span>"); | |
var prev = $("li.prev"); | |
var prev_txt = $("li.prev").text(); | |
var new_prev = ($("li.prev").hasClass("disabled") == true) ? $("li.prev").html("<span>previous</span>") : prev.html(); | |
var next = $("li.next"); | |
var next_txt = $("li.next").text(); | |
var new_next = ($("li.next").hasClass("disabled") == true) ? $("li.next").html("<span>next</span>") : next.html(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Forgot I'm on git, should just edit the file above... well this is a fix for HIERARCHY_REQUEST_ERR: DOM Exception 3