daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 43 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. (function ($, Drupal) {
  2.     Drupal.behaviors.myModuleBehavior = {
  3.         attach: function (context, settings) {
  4.             $('.layout-container', context).once('myModuleBehavior').each(function () {
  5.                 $('.site-name a').on('click', function (event) {
  6.                     event.preventDefault();
  7.                     event.stopPropagation();
  8.                     console.log("clicking on logo");
  9.                     window.location.hash = "/test=0";
  10.                 });
  11.             });
  12.         }
  13.     };
  14. })(jQuery, Drupal);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top