Fix timesheet edit could not select start date

Unimplemented "mode" legacy option was conflicting with flatpickr "mode" attribute
This commit is contained in:
nathan 2022-02-22 10:01:55 -07:00
parent 1c7e74a2af
commit ecd8b08373
2 changed files with 10 additions and 10 deletions

View File

@ -85,7 +85,7 @@ function send_template()
'checkbox' => 'selected_value,unselected_value,ro_true,ro_false', 'checkbox' => 'selected_value,unselected_value,ro_true,ro_false',
'radio' => 'set_value,ro_true,ro_false', 'radio' => 'set_value,ro_true,ro_false',
'customfields' => 'sub-type,use-private,field-names', 'customfields' => 'sub-type,use-private,field-names',
'date' => 'data_format,mode', 'date' => 'data_format', // Legacy option "mode" was never implemented in et2
'description' => 'bold-italic,link,activate_links,label_for,link_target,link_popup_size,link_title', 'description' => 'bold-italic,link,activate_links,label_for,link_target,link_popup_size,link_title',
); );
// prefer more specific type-subtype over just type // prefer more specific type-subtype over just type

View File

@ -102,7 +102,7 @@
</row> </row>
<row class="dialogHeader2"> <row class="dialogHeader2">
<description value="Date" for="ts_start"/> <description value="Date" for="ts_start"/>
<date id="ts_start" needed="1" options=",8" class="et2_fullWidth"/> <date id="ts_start" needed="1" class="et2_fullWidth"/>
<description/> <description/>
<description value="Starttime"/> <description value="Starttime"/>
<date-timeonly id="start_time" class="et2_fullWidth"/> <date-timeonly id="start_time" class="et2_fullWidth"/>