Overview
Comment: | Allow strings in openDialog |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA1: |
e7d6cc08d80cad7ce1274166f62a4778 |
User & Date: | bohwaz on 2020-12-02 12:10:32 |
Other Links: | branch diff | manifest | tags |
Context
2020-12-02
| ||
12:12 | New release check-in: 7751af5e6f user: bohwaz tags: dev, 1.0.0-rc4 | |
12:10 | Allow strings in openDialog check-in: e7d6cc08d8 user: bohwaz tags: dev | |
10:28 | Fix home banner return check-in: ba4414f6b2 user: bohwaz tags: dev | |
Changes
Modified src/www/admin/static/scripts/global.js from [66723d9008] to [9731151492].
︙ | ︙ | |||
108 109 110 111 112 113 114 115 116 117 118 119 120 121 | var btn = document.createElement('button'); btn.className = 'icn-btn'; btn.setAttribute('data-icon', '✘'); btn.type = 'button'; btn.innerHTML = 'Fermer'; btn.onclick = g.closeDialog; g.dialog.appendChild(btn); content.style.opacity = g.dialog.style.opacity = 0; g.dialog.appendChild(content); g.dialog.onclick = (e) => { if (e.target == g.dialog) g.closeDialog(); }; window.onkeyup = (e) => { if (e.key == 'Escape') g.closeDialog(); }; document.body.appendChild(g.dialog); | > > > > > > | 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | var btn = document.createElement('button'); btn.className = 'icn-btn'; btn.setAttribute('data-icon', '✘'); btn.type = 'button'; btn.innerHTML = 'Fermer'; btn.onclick = g.closeDialog; g.dialog.appendChild(btn); if (typeof content == 'string') { var container = document.createElement('div'); container.innerHTML = content; content = container; } content.style.opacity = g.dialog.style.opacity = 0; g.dialog.appendChild(content); g.dialog.onclick = (e) => { if (e.target == g.dialog) g.closeDialog(); }; window.onkeyup = (e) => { if (e.key == 'Escape') g.closeDialog(); }; document.body.appendChild(g.dialog); |
︙ | ︙ |