mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-12-01 03:06:17 +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',
|
ownId = 'mw-mlb-use-file-onwiki-normal',
|
||||||
owId = 'mw-mlb-use-file-offwiki',
|
owId = 'mw-mlb-use-file-offwiki',
|
||||||
|
|
||||||
viewer = this.viewer,
|
reuse = this,
|
||||||
|
|
||||||
$owtLabel = $( '<label>' )
|
$owtLabel = $( '<label>' )
|
||||||
.prop( 'for', owtId )
|
.prop( 'for', owtId )
|
||||||
|
@ -175,7 +175,7 @@
|
||||||
width: 750,
|
width: 750,
|
||||||
close: function () {
|
close: function () {
|
||||||
// Delete the dialog object
|
// Delete the dialog object
|
||||||
viewer.ui.$dialog = undefined;
|
reuse.$dialog = undefined;
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue