Skip to content

Instantly share code, notes, and snippets.

@AlexanderAllen
Created April 26, 2016 17:00
Show Gist options
  • Save AlexanderAllen/779ed81d3d1ca2433ca58d391476bd5a to your computer and use it in GitHub Desktop.
Save AlexanderAllen/779ed81d3d1ca2433ca58d391476bd5a to your computer and use it in GitHub Desktop.
debug js
(function ($) {
Drupal.behaviors.nvc_hack = {
attach: function (context, settings) {
alert('attach working foo');
}
};
// Code to be run on page load, and
// on ajax load added here
$(document).ready(function(){
alert('on dom ready working');
}); //end DOM
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment