From 9f9aaf078b7185d412eec2b5db771c7c83fa095c Mon Sep 17 00:00:00 2001 From: Moritz Strohm Date: Fri, 4 Nov 2022 09:00:15 +0100 Subject: re-added functionality to call a custom JS function after submitting the form --- app/controllers/multipersonsearch.php | 2 +- app/views/multipersonsearch/js_form.php | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/controllers/multipersonsearch.php b/app/controllers/multipersonsearch.php index 9335603..6d13335 100644 --- a/app/controllers/multipersonsearch.php +++ b/app/controllers/multipersonsearch.php @@ -81,7 +81,7 @@ class MultipersonsearchController extends AuthenticatedController $this->quickfilter[$title] = $tmp; } $this->executeURL = $mp->getExecuteURL(); - //may still be needed: $this->jsFunction = $mp->getJSFunctionOnSubmit(); + $this->js_function = $mp->getJSFunctionOnSubmit(); $this->selectable_users = User::findFullMany($mp->getDefaultSelectableUsersIDs(), 'ORDER BY Nachname asc, Vorname asc'); $this->selected_users = User::findFullMany($mp->getDefaultSelectedUsersIDs(), 'ORDER BY Nachname ASC, Vorname ASC'); } diff --git a/app/views/multipersonsearch/js_form.php b/app/views/multipersonsearch/js_form.php index 6095bc3..5aff925 100644 --- a/app/views/multipersonsearch/js_form.php +++ b/app/views/multipersonsearch/js_form.php @@ -35,3 +35,10 @@ + + + -- cgit v1.0