Created
March 4, 2016 06:36
-
-
Save stborchert/ffbba33d6d3c8bc5e1ca to your computer and use it in GitHub Desktop.
This file contains 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
/** | |
* @file | |
* Custom behaviors for "SHS alter". | |
*/ | |
(function ($, Drupal) { | |
/** | |
* Test some features. | |
*/ | |
Drupal.behaviors.shsalterTest = { | |
// Default function to attach the behavior. | |
attach: function (context, settings) { | |
$('select').change(function (event) { | |
console.log('.change() fetched'); | |
console.dir(event); | |
}); | |
$('select').bind('change', function (event) { | |
console.log('.bind("change") fetched'); | |
console.dir(event); | |
}); | |
} | |
} | |
})(jQuery, Drupal); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment