Team:UCLondon/Templates/Content-Slide
From 2012e.igem.org
(Difference between revisions)
Line 258: | Line 258: | ||
// add close button back | // add close button back | ||
- | $('#close-box4'). | + | $('body').off('click', '#close-box4', function(){ fstoggle(); closeBox4();}); |
+ | $('body').on('click', '#close-box4', closeBox4); | ||
} | } | ||
else { | else { | ||
Line 268: | Line 269: | ||
// remove close button so cannot end up in blank screen | // remove close button so cannot end up in blank screen | ||
- | $('#close-box4'). | + | $('body').off('click', '#close-box4', closeBox4); |
+ | $('body').on('click', '#close-box4', function(){ fstoggle(); closeBox4();}); | ||
} | } | ||
} | } |
Revision as of 00:06, 19 October 2012