mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-19 01:41:37 +00:00
Turbo-Kompatibilität verbessern.
Hinzufügen von Prüfungen auf Vorhandensein von DOM-Elementen in mehreren Controllern sowie Optimierung der Form-Submit-Logik für bessere Turbo-Integration. Anpassung von Template-Elementen und JavaScript-Events zur Unterstützung von Turbo Morphing auf der Startseite.
This commit is contained in:
parent
66c905738d
commit
563d39ff2d
9 changed files with 104 additions and 35 deletions
|
|
@ -22,6 +22,9 @@ import {Controller} from "@hotwired/stimulus";
|
|||
export default class extends Controller
|
||||
{
|
||||
download(event) {
|
||||
this.element.href = document.getElementById('pdf_preview').data
|
||||
const preview = document.getElementById('pdf_preview');
|
||||
if (preview) {
|
||||
this.element.href = preview.data;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue