Skip to content

Instantly share code, notes, and snippets.

@iamandrewpeters
Forked from carlosonweb/bb-clickble-col.js
Created June 9, 2020 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamandrewpeters/3704e6f445017fc16842b1dec9956029 to your computer and use it in GitHub Desktop.
Save iamandrewpeters/3704e6f445017fc16842b1dec9956029 to your computer and use it in GitHub Desktop.
Make a BB Column Clickable
/**
* Makes a BB Column clickable.
* Pre-requisite: There must be an A Tag contained within the column element.
*/
jQuery(document).ready(function($){
$('.clickable-col').css('cursor', 'pointer');
$('.clickable-col').on('click', function(event){
$(this).find('a')[0].click();
});
$('.clickable-col a').on('click', function(event){
event.stopPropagation();
});
});
@iamandrewpeters
Copy link
Author

Add class clickable-col to the Columbia you want to make clickable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment