You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cory [suggested to add the following to the reveal source code to enable the modal to be close programmaticaly (from Javascript).
[http://stackoverflow.com/questions/4884369/how-do-i-programmatically-close-an-open-jquery-reveal-js-modal-box]
Cory [suggested to add the following to the reveal source code to enable the modal to be close programmaticaly (from Javascript).
[http://stackoverflow.com/questions/4884369/how-do-i-programmatically-close-an-open-jquery-reveal-js-modal-box]
$.fn.hideModal = function(options){
var self = this,
modal = $(self),
topMeasure = parseInt(modal.css('top'));
$('.reveal-modal-bg').css({'display' : 'none'});
modal.css({'visibility' : 'hidden', 'top' : topMeasure});
}
and use
$('#your_modal_box').hideModal()
That's well worthwhile.
Thank you Cory!
The text was updated successfully, but these errors were encountered: