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:
Gilles Dubuc 2014-09-12 10:48:04 +02:00
parent 32429a7723
commit dca82c3866

View file

@ -285,7 +285,9 @@
* Closes the reuse dialog.
*/
DP.closeDialog = function () {
if ( this.isOpen ) {
mw.mmv.actionLogger.log( 'use-this-file-close' );
}
this.stopListeningToOutsideClick();
this.$reuseDialog.hide();