mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-09 14:39:32 +01:00
change doc query, add custom class as id
This commit is contained in:
parent
d013b6b035
commit
57740199ce
@ -549,6 +549,9 @@ class ListFiles extends ListRecords
|
|||||||
|
|
||||||
$this->refreshPage();
|
$this->refreshPage();
|
||||||
})
|
})
|
||||||
|
->extraModalWindowAttributes([
|
||||||
|
'class' => '.upload-modal-window',
|
||||||
|
])
|
||||||
->schema([
|
->schema([
|
||||||
Tabs::make()
|
Tabs::make()
|
||||||
->contained(false)
|
->contained(false)
|
||||||
|
|||||||
@ -11,26 +11,26 @@
|
|||||||
autoCloseTimer: 1000,
|
autoCloseTimer: 1000,
|
||||||
|
|
||||||
handleDragEnter(e) {
|
handleDragEnter(e) {
|
||||||
if (document.querySelector('.fi-modal-content')) return;
|
if (document.querySelector('.upload-modal-window')) return;
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
this.dragCounter++;
|
this.dragCounter++;
|
||||||
this.isDragging = true;
|
this.isDragging = true;
|
||||||
},
|
},
|
||||||
handleDragLeave(e) {
|
handleDragLeave(e) {
|
||||||
if (document.querySelector('.fi-modal-content')) return;
|
if (document.querySelector('.upload-modal-window')) return;
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
this.dragCounter--;
|
this.dragCounter--;
|
||||||
if (this.dragCounter === 0) this.isDragging = false;
|
if (this.dragCounter === 0) this.isDragging = false;
|
||||||
},
|
},
|
||||||
handleDragOver(e) {
|
handleDragOver(e) {
|
||||||
if (document.querySelector('.fi-modal-content')) return;
|
if (document.querySelector('.upload-modal-window')) return;
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
},
|
},
|
||||||
async handleDrop(e) {
|
async handleDrop(e) {
|
||||||
if (document.querySelector('.fi-modal-content')) return;
|
if (document.querySelector('.upload-modal-window')) return;
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
this.isDragging = false;
|
this.isDragging = false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user