mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-16 20:35:09 +00:00
Fixed viewer only displaying every nth image after reopening
Added code to detach emit calls when the interface is closed. Bug: T122785 Change-Id: Ifd97aebe7aa01a152817100f301a80a9b6ac83a3
This commit is contained in:
parent
ae0a1a8cc8
commit
f937b1f20d
|
@ -276,6 +276,11 @@
|
|||
|
||||
this.clearEvents();
|
||||
|
||||
this.buttons.disconnect( this, {
|
||||
'next': [ 'emit', 'next' ],
|
||||
'prev': [ 'emit', 'prev' ]
|
||||
} );
|
||||
|
||||
// We trigger this event on the document because unattach() can run
|
||||
// when the interface is unattached
|
||||
$( document ).trigger( $.Event( 'mmv-close' ) )
|
||||
|
|
Loading…
Reference in a new issue