Improve PDF/DJVU navigation
authortholam <t.lam@lamsinfosystem.com>
Mon, 25 Nov 2013 16:28:21 +0000 (10:28 -0600)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 25 Nov 2013 19:37:04 +0000 (19:37 +0000)
commit5e77f391a528d4bc64fc8cfe8065e254427b9ccd
treec2f0e4dcc2932d40d26696e06fbd505e26c716e5
parente1ecdea0b1272a2444547128437507673e19525c
Improve PDF/DJVU navigation

When a user clicks the next/previous page buttons, use
history.pushState (if available) to add a new history
item so that the back/forwards browser buttons navigate
the PDF. When a new page of the file is browsed to, also
fire the wikipage.content hook, since the page contents
have changed.

Co-authored-by: Theopolisme <theopolismewiki@gmail.com>
Co-authored-by: Tholam <t.lam@lamsinfosystem.com>
Bug: 55893
Change-Id: Id796bd641612706f7bd04c974065f05f72f2a8e4
resources/mediawiki.page/mediawiki.page.image.pagination.js