Moved jquery event handling to parent since hidden elements do not get events attached

This commit is contained in:
Usman Khalid
2013-09-27 21:35:16 +05:00
parent 5ca778ef05
commit 59403644ae

View File

@@ -327,11 +327,11 @@ PDFJS.disableWorker = true;
loadUrl(chapterUrl, pageVal);
}
$("#previous").click(function(event) {
$(".last").on('click','#previous',function(){
prevPage();
});
$("#next").click(function(event) {
$(".next").on('click','#next',function(){
nextPage();
});