From f0da3ee98a35812f3982c5824aa7c170ae8cbd61 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 17 May 2021 15:48:59 +0200 Subject: [PATCH] =?utf8?q?Zeiterfassung:=20Eingabe:=20Projekt-Wechsel=20mi?= =?utf8?q?t=20on('set=5Fitem:...')=20registrieren,=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit sonst wird das Event nicht ausgelöst,wenn man im Popup-Dialog ein Projekt wählt. --- js/kivi.TimeRecording.js | 4 ++++ templates/webpages/time_recording/form.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/js/kivi.TimeRecording.js b/js/kivi.TimeRecording.js index 47b0f16cc..574549e0e 100644 --- a/js/kivi.TimeRecording.js +++ b/js/kivi.TimeRecording.js @@ -57,3 +57,7 @@ namespace('kivi.TimeRecording', function(ns) { }; }); + +$(function() { + $('#time_recording_project_id').on('set_item:ProjectPicker', function(){ kivi.TimeRecording.project_changed() }); +}); diff --git a/templates/webpages/time_recording/form.html b/templates/webpages/time_recording/form.html index 337f3c718..07939daaa 100644 --- a/templates/webpages/time_recording/form.html +++ b/templates/webpages/time_recording/form.html @@ -58,7 +58,7 @@ [% 'Project' | $T8 %] - [% P.project.picker('time_recording.project_id', SELF.time_recording.project_id, description_style='both', style='width: 300px', onchange='kivi.TimeRecording.project_changed()') %] + [% P.project.picker('time_recording.project_id', SELF.time_recording.project_id, description_style='both', style='width: 300px') %] -- 2.20.1