mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-09-25 03:09:40 +00:00
Prevent multiple "Use this file" windows
Bug: 56501 Change-Id: Ic86feacb881d3b559d32f33fba508121f8b9ec27
This commit is contained in:
parent
53b07bedb3
commit
464733af21
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue