Ignoring beforeunload when submitting from within a modal

This commit is contained in:
Djamil Legato
2014-09-18 17:32:58 -07:00
parent 9688901dfd
commit 359351adf2

View File

@@ -39,6 +39,10 @@ $(function(){
$(window).off('beforeunload');
});
$('[data-remodal-id] form').on('submit', function(){
$(window).off('beforeunload');
});
$("#admin-mode-toggle input[name=mode-switch]").on('change', function(e){
var value = $(this).val();