mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-16 10:16:07 +01:00
Ignoring beforeunload when submitting from within a modal
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user