Prevent multiple "Use this file" windows

Bug: 56501
Change-Id: Ic86feacb881d3b559d32f33fba508121f8b9ec27
This commit is contained in:
theopolisme 2013-11-27 23:41:46 -06:00
parent 53b07bedb3
commit 464733af21

View file

@ -232,6 +232,11 @@
};
LIP.openFileUsageDialog = function () {
// Only open dialog once
if ( this.$dialog ) {
return false;
}
function selectAllOnEvent() {
var $this = $( this );
@ -316,7 +321,11 @@
$offWiki
)
.dialog( {
width: 750
width: 750,
close: function () {
// Delete the dialog object
mw.mediaViewer.ui.$dialog = undefined;
}
} );
$owtField.click();