Mercurial > hg > cmmr2012-drupal-site
comparison vendor/chi-teck/drupal-code-generator/templates/d7/javascript.twig @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children | a9cd425dd02b |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c75dbcec494b |
---|---|
1 /** | |
2 * {{ name }} behaviors. | |
3 */ | |
4 (function ($) { | |
5 | |
6 /** | |
7 * Behavior description. | |
8 */ | |
9 Drupal.behaviors.{{ machine_name | camelize(false) }} = { | |
10 attach: function (context, settings) { | |
11 | |
12 console.log('It works!'); | |
13 | |
14 } | |
15 } | |
16 | |
17 }(jQuery)); |