mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-17 04:43:18 +00:00
Fix over reported use-this-file-close event
Merely opening media viewer would trigger it. Change-Id: I62f4685b821aace3d6323c511d5ad889c1745c4b Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/889
This commit is contained in:
parent
32429a7723
commit
dca82c3866
|
@ -285,7 +285,9 @@
|
|||
* Closes the reuse dialog.
|
||||
*/
|
||||
DP.closeDialog = function () {
|
||||
mw.mmv.actionLogger.log( 'use-this-file-close' );
|
||||
if ( this.isOpen ) {
|
||||
mw.mmv.actionLogger.log( 'use-this-file-close' );
|
||||
}
|
||||
|
||||
this.stopListeningToOutsideClick();
|
||||
this.$reuseDialog.hide();
|
||||
|
|
Loading…
Reference in a new issue