From 94f7a4b2d80944ba96b4ad4897ef58c012ca1d4b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 17 May 2021 16:38:05 +0200 Subject: [PATCH] Zeiterfassung: Eingaben: Wenn Projekt-Picker gesperrt, dann auch Lupe nicht erlauben --- js/kivi.TimeRecording.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/kivi.TimeRecording.js b/js/kivi.TimeRecording.js index dd44411cf..b897b764f 100644 --- a/js/kivi.TimeRecording.js +++ b/js/kivi.TimeRecording.js @@ -27,6 +27,7 @@ namespace('kivi.TimeRecording', function(ns) { $('#time_recording_customer_id_name').prop('disabled', false); $('#time_recording_project_id').data('project_picker').set_item({}); $('#time_recording_project_id_name').prop('disabled', false); + $('#time_recording_project_id ~ .ppp_popup_button').show() return; } @@ -36,6 +37,7 @@ namespace('kivi.TimeRecording', function(ns) { $('#time_recording_customer_id_name').prop('disabled', true); $('#time_recording_project_id').data('project_picker').set_item(data.project); $('#time_recording_project_id_name').prop('disabled', true); + $('#time_recording_project_id ~ .ppp_popup_button').hide() }); }; @@ -65,6 +67,7 @@ namespace('kivi.TimeRecording', function(ns) { } if ("project" === elt) { $('#time_recording_project_id_name').prop('disabled', true); + setTimeout(function() {$('#time_recording_project_id ~ .ppp_popup_button').hide();}, 100); } }); }; -- 2.20.1