Overview
Comment: | Add Escape key to close dialog |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA1: |
0f3aa7ac912e9f57351e2e03d61687a4 |
User & Date: | bohwaz on 2020-11-07 16:34:18 |
Other Links: | branch diff | manifest | tags |
Context
2020-11-07
| ||
16:39 | Set 'Escape' key to close any iframe dialog check-in: 232c3fc135 user: bohwaz tags: dev | |
16:34 | Add Escape key to close dialog check-in: 0f3aa7ac91 user: bohwaz tags: dev | |
16:33 | Add new form element: large radio button check-in: e6f38916c7 user: bohwaz tags: dev | |
Changes
Modified src/templates/admin/membres/selector.tpl from [1b73c5c74d] to [2331247a49].
︙ | ︙ | |||
49 50 51 52 53 54 55 56 57 58 59 | } e.querySelector('button').click(); }; }); document.querySelector('input').focus(); </script> {/literal} {include file="admin/_foot.tpl"} | > | 49 50 51 52 53 54 55 56 57 58 59 60 | } e.querySelector('button').click(); }; }); document.querySelector('input').focus(); window.onkeyup = (e) => { if (e.key == 'Escape') window.parent.g.closeDialog(); }; </script> {/literal} {include file="admin/_foot.tpl"} |