Compare commits
No commits in common. "5d82597d14977e71013833d62f02985811939416" and "a1f70ff654aade7c824e62565765745c46225d16" have entirely different histories.
5d82597d14
...
a1f70ff654
|
@ -401,7 +401,6 @@ class Tags extends HTMLDivElement {
|
|||
customElements.define('numerus-multiselect', Multiselect, {extends: 'div'});
|
||||
customElements.define('numerus-tags', Tags, {extends: 'div'});
|
||||
|
||||
let savedTitle = '';
|
||||
|
||||
htmx.onLoad((target) => {
|
||||
if (target.tagName === 'DIALOG') {
|
||||
|
@ -409,8 +408,6 @@ htmx.onLoad((target) => {
|
|||
for (const detail of details) {
|
||||
detail.removeAttribute('open');
|
||||
}
|
||||
savedTitle = document.title;
|
||||
document.title = target.querySelector('h2').textContent + ' — ' + savedTitle.substring(savedTitle.indexOf("—") + 1);
|
||||
target.showModal();
|
||||
const button = target.querySelector('.close-dialog');
|
||||
if (button) {
|
||||
|
@ -428,7 +425,6 @@ htmx.on('closeModal', () => {
|
|||
}
|
||||
openDialog.close();
|
||||
openDialog.remove();
|
||||
document.title = savedTitle;
|
||||
});
|
||||
|
||||
htmx.on(document, 'alpine:init', () => {
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
<title>{{ template "title" . }} — Numerus</title>
|
||||
{{- template "breadcrumbs" . }}
|
||||
{{- template "content" . }}
|
||||
|
|
Loading…
Reference in New Issue