Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37679

How do I make the entire Block's title clickable (to make it show and hide the block)

$
0
0
by Nadav Kavalerchik.  

I am tring to have the entire Block's title element area clickable and have it show and hide the block's content in a similar fashion as the .block_action imges do.

trying to capture the on click event does not seems to do anything.

Inside /lib/javascript-static.js on the "M.util.init_block_hider = function(Y, config) {..." functions, I am using "t.on('click',this.UpdateState,this,false);" inside "blockhider.prototype = {initializer ... " (to begin with) but it seems to have no effect in the browser.

I would love some help


Viewing all articles
Browse latest Browse all 37679

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>