Only confirm exit in public mode

This commit is contained in:
Mattias Erming 2014-12-11 23:42:22 +01:00
parent 9b03be22b2
commit 07a509a862
2 changed files with 10 additions and 9 deletions

View File

@ -775,9 +775,11 @@ $(function() {
} }
function confirmExit() { function confirmExit() {
window.onbeforeunload = function() { if ($("body").hasClass("public")) {
return "Are you sure you want to navigate away from this page?"; window.onbeforeunload = function() {
}; return "Are you sure you want to navigate away from this page?";
};
}
} }
function refresh() { function refresh() {

View File

@ -1,6 +1,5 @@
/** /**
* This is just an example theme and does not * This is just an empty theme.
* contain anything.
*/ */
body { body {