mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-24 00:03:56 +00:00
Merge "Prevent multiple "Use this file" windows"
This commit is contained in:
commit
a36622185f
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue