Skip to content

Instantly share code, notes, and snippets.

@mavimo
Created July 2, 2012 10:52
Show Gist options
  • Save mavimo/3032676 to your computer and use it in GitHub Desktop.
Save mavimo/3032676 to your computer and use it in GitHub Desktop.
Drupal 7 JS behavior
(function ($) {
Drupal.behaviors.product_search = {
attach: function (context, settings) {
$('.ciripiri-element', context).click(function () {
alert('cliccato');
});
}
};
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment