Commit 59403644 by Usman Khalid

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

parent 5ca778ef
...@@ -327,11 +327,11 @@ PDFJS.disableWorker = true; ...@@ -327,11 +327,11 @@ PDFJS.disableWorker = true;
loadUrl(chapterUrl, pageVal); loadUrl(chapterUrl, pageVal);
} }
$("#previous").click(function(event) { $(".last").on('click','#previous',function(){
prevPage(); prevPage();
}); });
$("#next").click(function(event) { $(".next").on('click','#next',function(){
nextPage(); nextPage();
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment