Compare commits

..

No commits in common. "5d82597d14977e71013833d62f02985811939416" and "a1f70ff654aade7c824e62565765745c46225d16" have entirely different histories.

2 changed files with 0 additions and 5 deletions

View File

@ -401,7 +401,6 @@ class Tags extends HTMLDivElement {
customElements.define('numerus-multiselect', Multiselect, {extends: 'div'}); customElements.define('numerus-multiselect', Multiselect, {extends: 'div'});
customElements.define('numerus-tags', Tags, {extends: 'div'}); customElements.define('numerus-tags', Tags, {extends: 'div'});
let savedTitle = '';
htmx.onLoad((target) => { htmx.onLoad((target) => {
if (target.tagName === 'DIALOG') { if (target.tagName === 'DIALOG') {
@ -409,8 +408,6 @@ htmx.onLoad((target) => {
for (const detail of details) { for (const detail of details) {
detail.removeAttribute('open'); detail.removeAttribute('open');
} }
savedTitle = document.title;
document.title = target.querySelector('h2').textContent + ' — ' + savedTitle.substring(savedTitle.indexOf("—") + 1);
target.showModal(); target.showModal();
const button = target.querySelector('.close-dialog'); const button = target.querySelector('.close-dialog');
if (button) { if (button) {
@ -428,7 +425,6 @@ htmx.on('closeModal', () => {
} }
openDialog.close(); openDialog.close();
openDialog.remove(); openDialog.remove();
document.title = savedTitle;
}); });
htmx.on(document, 'alpine:init', () => { htmx.on(document, 'alpine:init', () => {

View File

@ -1,3 +1,2 @@
<title>{{ template "title" . }} — Numerus</title>
{{- template "breadcrumbs" . }} {{- template "breadcrumbs" . }}
{{- template "content" . }} {{- template "content" . }}