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();
|
||||
})
|
||||
->extraModalWindowAttributes([
|
||||
'class' => '.upload-modal-window',
|
||||
])
|
||||
->schema([
|
||||
Tabs::make()
|
||||
->contained(false)
|
||||
|
||||
@ -11,26 +11,26 @@
|
||||
autoCloseTimer: 1000,
|
||||
|
||||
handleDragEnter(e) {
|
||||
if (document.querySelector('.fi-modal-content')) return;
|
||||
if (document.querySelector('.upload-modal-window')) return;
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
this.dragCounter++;
|
||||
this.isDragging = true;
|
||||
},
|
||||
handleDragLeave(e) {
|
||||
if (document.querySelector('.fi-modal-content')) return;
|
||||
if (document.querySelector('.upload-modal-window')) return;
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
this.dragCounter--;
|
||||
if (this.dragCounter === 0) this.isDragging = false;
|
||||
},
|
||||
handleDragOver(e) {
|
||||
if (document.querySelector('.fi-modal-content')) return;
|
||||
if (document.querySelector('.upload-modal-window')) return;
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
},
|
||||
async handleDrop(e) {
|
||||
if (document.querySelector('.fi-modal-content')) return;
|
||||
if (document.querySelector('.upload-modal-window')) return;
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
this.isDragging = false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user