Go to file
Gilles Dubuc 09374fc9dd Restore article scroll after closing Media Viewer
There used to be a CSS trick with the order we added things to the
page and removed them from it, but it doesn't seem possible anymore
with the new order of execution, with the overlay appearing
immediately and being taken care of inside bootstrap.

The main cause of the bug, however, was the hash reset happening
after the interface was closed.

Doing the scroll restore with jQuery.scrollTo is more future-proof
and testable in QUnit.

Additions were also made to the cucumber E2E test because QUnit
alone wouldn't have caught the hash issue.

This also cleans up custom events a little and reintroduces
pushState on browsers that support the history API.

Change-Id: I63187383b632a2e8793f05380c18db2713856865
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/439
Bug: 63892
2014-04-14 18:04:30 +00:00
docs Download tab, basic download and preview 2014-04-02 23:00:28 +00:00
i18n Localisation updates from https://translatewiki.net. 2014-04-10 20:30:15 +00:00
resources Restore article scroll after closing Media Viewer 2014-04-14 18:04:30 +00:00
tests Restore article scroll after closing Media Viewer 2014-04-14 18:04:30 +00:00
.gitignore Adding first pass at jsduck docs 2014-01-21 11:44:58 -08:00
.gitreview Add .gitreview 2013-08-08 11:11:01 +02:00
.jshintignore Fix hash self-reaction 2014-02-24 19:14:45 +01:00
.jshintrc Get rid of lightboxHooks 2014-02-13 17:47:30 -08:00
AUTHORS Big credits patch 2014-02-13 13:38:19 -08:00
COPYING Initial commit - working demo 2013-09-03 16:52:28 -07:00
importml.sh Make importml.sh less Linux-centric, more UNIX-agnostic 2013-12-05 00:19:02 +00:00
MultimediaViewer.i18n.php Download tab, basic download and preview 2014-04-02 23:00:28 +00:00
MultimediaViewer.php Restore article scroll after closing Media Viewer 2014-04-14 18:04:30 +00:00
MultimediaViewerHooks.php Merge "Add truncatable text field, use for some fields" 2014-04-10 12:13:46 +00:00
viewer-ltr.svg Fix images and related CSS for RTL wikis 2013-11-26 00:54:18 +02:00
viewer-rtl.svg Fix images and related CSS for RTL wikis 2013-11-26 00:54:18 +02:00