Zeiterfassung: Eingaben: Wenn Projekt-Picker gesperrt, dann auch Lupe nicht erlauben
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Mon, 17 May 2021 14:38:05 +0000 (16:38 +0200)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Mon, 17 May 2021 15:29:28 +0000 (17:29 +0200)
js/kivi.TimeRecording.js

index dd44411..b897b76 100644 (file)
@@ -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);
       }
     });
   };