Context
I use jQuery UI effects (slide
and drop
) to open and close a slide.
The following code works on Chrome, Firefox and IE 9.
On IE 7 and 8, I can open and close the slide only once. After the slide stays hidden.
Any idea to resolve that?
- jQuery :
1.8.0
/1.8.1
- jQuery UI :
1.8.23
Code + JSFiddle
// Opens a slide
$('a[data-toggle="slide"]').click(function (e) {
e.preventDefault();
currentSlide = $(this).attr('href');
$(currentSlide).show('slide', { direction: 'right' }, _config.effectDuration);
$('div.modal-backdrop').fadeIn(_config.effectDuration);
});
// Closes the current slide
$('div.modal-backdrop, button.close').click(function () {
$(currentSlide).hide('drop', { direction: 'right' }, _config.effectDuration);
$('div.modal-backdrop').fadeOut(_config.effectDuration);
});