Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function ($, Drupal) {
- Drupal.behaviors.myModuleBehavior = {
- attach: function (context, settings) {
- $('.layout-container', context).once('myModuleBehavior').each(function () {
- $('.site-name a').on('click', function (event) {
- event.preventDefault();
- event.stopPropagation();
- console.log("clicking on logo");
- window.location.hash = "/test=0";
- });
- });
- }
- };
- })(jQuery, Drupal);
Add Comment
Please, Sign In to add comment