remembers chosen label
This commit is contained in:
parent
4a60026162
commit
77e6058e4c
1 changed files with 4 additions and 0 deletions
|
@ -90,7 +90,11 @@
|
|||
></table>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const chosenLabel = "{{ old('label2_template', $chosenLabel ?? '') }}";
|
||||
$('#label2TemplateTable').on('load-success.bs.table', (e) => {
|
||||
if (chosenLabel) {
|
||||
$('input[name="label2_template"][value="' + chosenLabel + '"]').prop('checked', true);
|
||||
}
|
||||
let form = document.getElementById('settingsForm');
|
||||
form.dispatchEvent(new Event('change'));
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue