Overview
Comment: | Fix bug with required amount |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA3-256: |
9ad130f8b0122858b58a3ed340640a34 |
User & Date: | bohwaz on 2022-02-04 13:27:29 |
Other Links: | manifest | tags |
Context
2022-02-04
| ||
23:33 | Fix input of money amounts < 1 check-in: b9dde10b95 user: bohwaz tags: trunk, stable | |
13:27 | Fix bug with required amount check-in: 9ad130f8b0 user: bohwaz tags: trunk, stable | |
12:55 | Let's fix parent = null for real check-in: 225c4f8dd6 user: bohwaz tags: trunk, stable | |
Changes
Modified src/www/admin/static/scripts/accounting.js from [2c31b52794] to [93a05e165e].
︙ | ︙ | |||
119 120 121 122 123 124 125 | // Toggle parts of the form when a type is selected function selectType(v) { hideAllTypes(); g.toggle('[data-types~=t' + v + ']', true); g.toggle('[data-types=all-but-advanced]', v != 0); // Disable required form elements, or the form won't be able to be submitted $('[data-types=all-but-advanced] input[required]').forEach((e) => { | | | 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | // Toggle parts of the form when a type is selected function selectType(v) { hideAllTypes(); g.toggle('[data-types~=t' + v + ']', true); g.toggle('[data-types=all-but-advanced]', v != 0); // Disable required form elements, or the form won't be able to be submitted $('[data-types=all-but-advanced] input[required]').forEach((e) => { e.disabled = v == 0 ? true : false; }); } var radios = $('fieldset input[type=radio][name=type]'); radios.forEach((e) => { |
︙ | ︙ |