# HG changeset patch # User border # Date 1356072561 18000 # Node ID 7d549f711862ff5cde4f51eefdbb3522905f69f6 # Parent 954aa4dd7c9e08bec4cae2fd631493826c837b40 fix bug 45: ask confirmation during page load diff -r 954aa4dd7c9e -r 7d549f711862 styles/default/footer.html --- a/styles/default/footer.html Thu Dec 20 10:21:27 2012 +0100 +++ b/styles/default/footer.html Fri Dec 21 01:49:21 2012 -0500 @@ -8,6 +8,9 @@ - $(gettext 'BSD License') + EOT diff -r 954aa4dd7c9e -r 7d549f711862 styles/default/header.html --- a/styles/default/header.html Thu Dec 20 10:21:27 2012 +0100 +++ b/styles/default/header.html Fri Dec 21 01:49:21 2012 -0500 @@ -11,6 +11,13 @@ function showLoading(){ document.getElementById("loading").style.display='none'; } + + //Ask confirmation on close window during load time + window.onbeforeunload = confirmExit; + function confirmExit() + { + return 1; + }