Merge "Prevent multiple "Use this file" windows"

This commit is contained in:
jenkins-bot 2013-11-29 21:19:13 +00:00 committed by Gerrit Code Review
commit a36622185f

View file

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