From: Bernd Bleßmann Date: Mon, 17 May 2021 13:48:59 +0000 (+0200) Subject: Zeiterfassung: Eingabe: Projekt-Wechsel mit on('set_item:...') registrieren, … X-Git-Tag: kivitendo-mebil_0.1-0~9^2~219 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f0da3ee98a35812f3982c5824aa7c170ae8cbd61;p=kivitendo-erp.git Zeiterfassung: Eingabe: Projekt-Wechsel mit on('set_item:...') registrieren, … sonst wird das Event nicht ausgelöst,wenn man im Popup-Dialog ein Projekt wählt. --- 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') %]