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:
Gilles Dubuc 2014-02-28 11:52:47 +01:00
parent fedaa553b4
commit 430ec53d3e

View file

@ -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;
} }
} ); } );