bonny / WordPress-Simple-Fields

WordPress plugin that extend Custom Fields to include textareas, WYSIWYG-editor, files, attachments, well basically anything
http://wordpress.org/extend/plugins/simple-fields/
88 stars 23 forks source link

Date Picker Functionality Not Working for Time #105

Closed robgnyc closed 9 years ago

robgnyc commented 10 years ago

The date picker functionality works fine for date only but if you choose time and date or time only there is nowhere to enter the time, only the date.

screen shot 2014-04-24 at 3 33 56 pm screen shot 2014-04-24 at 3 34 48 pm

bonny commented 9 years ago

Perhaps due to this error I get using latest Query Monitor:

Broken Dependencies jquery-timepicker http://logosack-wp.ep/assets/plugins/simple-fields/js/jquery-ui-timepicker-addon.css jquery-ui-smoothness (missing)

peter-nl commented 9 years ago

It seems Simple Fields v1.4.10 needs some tweaking as for the Date&Timepicker. Maybe this will help some.

The qMonitor's 'broken dependencies warning' is caused by the enqueue depency as specified in field_date_v2.php: wp_enqueue_style("jquery-timepicker", SIMPLE_FIELDS_URL . "js/jquery-ui-timepicker-addon.css", array("jquery-ui-smoothness") );

Due to the missing css the Timepicker display is somewhat messy but doesn't seem to do much more harm in my simple test set-up.

If is set the timepicker to only date or only time, everything works as expected. When I select 'Show picker as both date and time', however, I get a script error 'Uncaught TypeError: $.datepicker.log is not a function'. Apparently that function was removed at some point from jQuery UI, ref https://github.com/trentrichardson/jQuery-Timepicker-Addon/issues/545.

Kind regards, Peter

bonny commented 9 years ago

thanks peter. i will release an update soon with this fix.