Last active
December 23, 2015 09:09
-
-
Save heddn/6612696 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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