diff --git a/scp/js/scp.js b/scp/js/scp.js index 0d86a48c20a2ee4a2f5daa127452092d735ebca1..f993a5a468ea7e6d96eb3ec903b89dc4d99f2ade 100644 --- a/scp/js/scp.js +++ b/scp/js/scp.js @@ -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!'; }); } });