Skip to content
Snippets Groups Projects
Commit 7b424118 authored by Peter Rotich's avatar Peter Rotich
Browse files

merge feature/discard-warning

parents c4135386 a4ac1647
No related branches found
No related tags found
No related merge requests found
......@@ -88,8 +88,7 @@ $(document).ready(function(){
fObj.data('changed', true);
$('input[type=submit]', fObj).css('color', 'red');
$(window).bind('beforeunload', function(e) {
e.returnValue='Are you sure you want to leave? Any changes or info you\'ve entered will be discarded!';
return e.returnValue;
return 'Are you sure you want to leave? Any changes or info you\'ve entered will be discarded!';
});
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment