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(); $this->refreshPage();
}) })
->extraModalWindowAttributes([
'class' => '.upload-modal-window',
])
->schema([ ->schema([
Tabs::make() Tabs::make()
->contained(false) ->contained(false)

View File

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