Skip to content

Instantly share code, notes, and snippets.

@heddn
Last active December 23, 2015 09:09
Show Gist options
  • Select an option

  • Save heddn/6612696 to your computer and use it in GitHub Desktop.

Select an option

Save heddn/6612696 to your computer and use it in GitHub Desktop.
(function ($) {
/**
* Register the myTheme behavior.
*/
Drupal.behaviors.myTheme = {
attach: function (context, settings) {
Drupal.myTheme.DatePicker(context, settings);
}
};
/**
* Class containing functionality for myTheme.
*/
Drupal.myTheme = {};
/**
* Class containing functionality for DatePicker.
*/
Drupal.myTheme.DatePicker = function (context, settings) {
$('#datepicker', context).datepicker();
};
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment