change doc query, add custom class as id

This commit is contained in:
notCharles 2025-11-03 18:18:07 -05:00
parent d013b6b035
commit 57740199ce
2 changed files with 7 additions and 4 deletions

View File

@ -549,6 +549,9 @@ class ListFiles extends ListRecords
$this->refreshPage();
})
->extraModalWindowAttributes([
'class' => '.upload-modal-window',
])
->schema([
Tabs::make()
->contained(false)

View File

@ -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;