first import
This commit is contained in:
19
sites/all/themes/omega/alpha/js/alpha-debug.js
Normal file
19
sites/all/themes/omega/alpha/js/alpha-debug.js
Normal file
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Attaches the debugging behavior.
|
||||
*/
|
||||
(function($) {
|
||||
Drupal.behaviors.alphaDebug = {
|
||||
attach: function (context) {
|
||||
$('body', context).once('alpha-debug', function () {
|
||||
$('.alpha-grid-toggle').click(function() {
|
||||
$('body').toggleClass('alpha-grid-debug');
|
||||
return false;
|
||||
});
|
||||
$('.alpha-block-toggle').click(function() {
|
||||
$('body').toggleClass('alpha-region-debug');
|
||||
return false;
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
})(jQuery);
|
Reference in New Issue
Block a user