Make a BB Column Clickable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Makes a BB Column clickable. | |
* Pre-requisite: There must be an A Tag contained within the column element. | |
*/ | |
(function($){ | |
// Exit if BB layout is in edit mode. | |
if ( 'undefined' != typeof window.FLBuilderConfig ) { | |
return; | |
} | |
$('.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(); | |
}); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍🏻