From: Bernd Bleßmann Date: Mon, 17 May 2021 14:38:05 +0000 (+0200) Subject: Zeiterfassung: Eingaben: Wenn Projekt-Picker gesperrt, dann auch Lupe nicht erlauben X-Git-Tag: kivitendo-mebil_0.1-0~9^2~217 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=94f7a4b2d80944ba96b4ad4897ef58c012ca1d4b;p=kivitendo-erp.git Zeiterfassung: Eingaben: Wenn Projekt-Picker gesperrt, dann auch Lupe nicht erlauben --- 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); } }); };