Team:UCLondon/Templates/Content-Slide
From 2012e.igem.org
(Difference between revisions)
Line 242: | Line 242: | ||
$(this).children('#box-content4').html(loading); | $(this).children('#box-content4').html(loading); | ||
}); | }); | ||
+ | } | ||
+ | |||
+ | |||
+ | var fscloseBox = function() { | ||
+ | closeBox4(); | ||
+ | fstoggle(); | ||
} | } | ||
Line 258: | Line 264: | ||
// add close button back | // add close button back | ||
- | $('body').off('click', '#close-box4', | + | $('body').off('click', '#close-box4', fscloseBox); |
$('body').on('click', '#close-box4', closeBox4); | $('body').on('click', '#close-box4', closeBox4); | ||
} | } | ||
Line 270: | Line 276: | ||
// remove close button so cannot end up in blank screen | // remove close button so cannot end up in blank screen | ||
$('body').off('click', '#close-box4', closeBox4); | $('body').off('click', '#close-box4', closeBox4); | ||
- | $('body').on('click', '#close-box4', | + | $('body').on('click', '#close-box4', fscloseBox); |
} | } | ||
} | } |
Revision as of 00:11, 19 October 2012