Ask questions and get good answers on mb.jQuery.components

Hi Matteo,

I needed to modify your mb.extruder for an application here.

I added the following option (line 47, after slideTimer):

closeOnExternalClick: true //(true= default, does what your script would normally do)
false: disables the onclick event on your document to hide the extruder again.

This option may be helpful for other developers. Changed Line 151:

$(document).one("click.extruder"+extruder.get(0).idx,function(){extruder.closeMbExtruder();});
To:
if(extruder.get(0).options.closeOnExternalClick)
              $(document).one("click.extruder"+extruder.get(0).idx,function(){extruder.closeMbExtruder();});

Hope this helps someone.

Best Regards,

Seb

asked Oct 26 '10 at 10:06

killercowuk's gravatar image

killercowuk
32

edited Oct 26 '10 at 10:10


Thnx Seb, I introduced your option for the mb.extruder component; it'll be out with next public release. Bye

answered Oct 26 '10 at 13:08

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

Your answer
toggle preview

jQuery main site - Matteo Bicocchi