mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-24 08:13:38 +00:00
Merge "Prevent multiple "Use this file" windows"
This commit is contained in:
commit
a36622185f
|
@ -232,6 +232,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
LIP.openFileUsageDialog = function () {
|
LIP.openFileUsageDialog = function () {
|
||||||
|
// Only open dialog once
|
||||||
|
if ( this.$dialog ) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
function selectAllOnEvent() {
|
function selectAllOnEvent() {
|
||||||
this.select();
|
this.select();
|
||||||
}
|
}
|
||||||
|
@ -306,7 +311,11 @@
|
||||||
$offWiki
|
$offWiki
|
||||||
)
|
)
|
||||||
.dialog( {
|
.dialog( {
|
||||||
width: 750
|
width: 750,
|
||||||
|
close: function () {
|
||||||
|
// Delete the dialog object
|
||||||
|
mw.mediaViewer.ui.$dialog = undefined;
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
$owtField.click();
|
$owtField.click();
|
||||||
|
|
Loading…
Reference in a new issue