- changed status to resolved
Edit Appointment - Format of date
Issue #36
resolved
Change the displayed format of the input fields “appointment_start_date” and “appointment_end_date” from yyyy-mm-dd to the format defined in “Date Format” on the WordPress General Options page or the local date format (e.g. dd-mm-yyyy in Europe).
————
If the start date and end date are the same, automatically change the end date if the start date is changed to match the start date. So users don’t have to change two fields, if they only want to set a different date:
var start_date = jQuery('#appointment_start_date').val();
var end_date = jQuery('#appointment_end_date').val();
jQuery('#appointment_start_date').on('focusout', function(){
if(start_date == end_date){
jQuery('#appointment_end_date').val(start_date);
}
});
Maybe add a subtle visual indication, to show that the ende date was also updated (something like a short flash).
Comments (1)
-
- Log in to comment
Format will stay as yyyy-mm-dd for now as date input field need to be structured this way.
On the other side, I've added the same date change with v1.9.2.