Skip to content

Instantly share code, notes, and snippets.

@phillipkoebbe
Created December 7, 2011 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phillipkoebbe/1444655 to your computer and use it in GitHub Desktop.
Save phillipkoebbe/1444655 to your computer and use it in GitHub Desktop.
// Note that the track_changes function indicated in the callback is part of
// a custom change tracking solution that is called in the onchange event
// of extended form elements.
var date_picker_field_id = 'some-dom-id';
var date_picker_field = $(date_picker_field_id);
form_elements = {};
form_elements[date_picker_field_id] = '%Y-%m-%d';
datePickerController.createDatePicker({
formElements: form_elements,
callbackFunctions: { 'dateset': [date_picker_field.track_changes.bind(date_picker_field)] }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment