Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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();
});
});
@zackpyle

This comment has been minimized.

Copy link

commented Jan 2, 2019

It isn't explicitly stated in that gist, but you have to add a class of clickable-col to that column you want this to apply to

@carlosonweb

This comment has been minimized.

Copy link
Owner Author

commented Jan 23, 2019

Yes, @zackpyle. You need to add the class name "clickable-col" to the target column. Thanks for your inputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.