Go to file
Gergő Tisza 3be5195ed2 Ensure click playback happens at the right time
The code to replay clicks and clean up the handler was called after
processing each thumbnail, instead of just once at the end.
This might have caused many subtle issues such as clicks on any
but the first image not replaying correctly; more problematically,
of there were no MediaViewer-compatible thumbs, the handler was
never cleaned up and the clicks were never replayed.

Besides fixing that, this commit also adds a try..finally wrapper
so that the click replaying is not broken even if there is an error
in the thumb processing code. This might or might not be a good
idea. The internets say that try..finally without a catch causes
errors in IE8, but only if it is not wrapped in another try..catch,
so we are probably fine. (Adding a catch which just rethrows the
error would be an alternative, but it messes up stack traces.)

Change-Id: I2f645762103274c92c15a0d4b595d18d93b08415
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/497
Bug: 64345
2014-04-29 00:27:31 +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-28 20:14:25 +00:00
resources Ensure click playback happens at the right time 2014-04-29 00:27:31 +00:00
tests Merge "User custom user agent to identify production test runs" 2014-04-24 23:14:16 +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 Update i18n shim 2014-04-22 13:31:20 +00:00
MultimediaViewer.php Merge "Skip userinfo request if no message depends on the gender." 2014-04-23 23:47:34 +00:00
MultimediaViewerHooks.php Split the progress bar into a component of its own. 2014-04-21 22:27:59 +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