Move content-placeholder handling out of form_handlers

This commit is contained in:
Mira Weller
2026-09-30 21:03:27 +02:00
parent 2fe077d958
commit 071942e095
@@ -739,7 +739,9 @@ let form_handlers = function (el) {
el.find('input[name*=question], select[name*=question]').change(questions_toggle_dependent)
questions_toggle_dependent()
questions_init_photos(el)
}
function setup_placeholders() {
let lastFocusedInput
$(document).on('focusin', 'input, textarea', function (e) {
lastFocusedInput = e.target
@@ -1083,6 +1085,7 @@ $(function () {
setup_basics($('body'))
form_handlers($('body'))
setup_placeholders()
$(document).trigger('pretix:bind-forms')
$('#ajaxerr').on('click', '.ajaxerr-close', ajaxErrDialog.hide)