mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-28 01:50:09 +00:00
Fix JS error happening when closing "use this file" dialog
Change-Id: I690f473ea17117bed7d30e1a858f6612f57fc33e Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/224
This commit is contained in:
parent
fedaa553b4
commit
430ec53d3e
|
@ -111,7 +111,7 @@
|
|||
ownId = 'mw-mlb-use-file-onwiki-normal',
|
||||
owId = 'mw-mlb-use-file-offwiki',
|
||||
|
||||
viewer = this.viewer,
|
||||
reuse = this,
|
||||
|
||||
$owtLabel = $( '<label>' )
|
||||
.prop( 'for', owtId )
|
||||
|
@ -175,7 +175,7 @@
|
|||
width: 750,
|
||||
close: function () {
|
||||
// Delete the dialog object
|
||||
viewer.ui.$dialog = undefined;
|
||||
reuse.$dialog = undefined;
|
||||
}
|
||||
} );
|
||||
|
||||
|
|
Loading…
Reference in a new issue