peceful/js/foundation_init.js

17 lines
317 B
JavaScript

/**
* @file
* Initializes foundation's JavaScript.
*
*/
(function ($, Drupal) {
/**
* Initializes foundation's JavaScript for new content added to the page.
*/
Drupal.behaviors.foundationInit = {
attach: function (context, settings) {
$(context).foundation();
}
};
})(jQuery, Drupal);