Only confirm exit in public mode
This commit is contained in:
parent
9b03be22b2
commit
07a509a862
@ -775,9 +775,11 @@ $(function() {
|
||||
}
|
||||
|
||||
function confirmExit() {
|
||||
window.onbeforeunload = function() {
|
||||
return "Are you sure you want to navigate away from this page?";
|
||||
};
|
||||
if ($("body").hasClass("public")) {
|
||||
window.onbeforeunload = function() {
|
||||
return "Are you sure you want to navigate away from this page?";
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
function refresh() {
|
||||
|
@ -1,6 +1,5 @@
|
||||
/**
|
||||
* This is just an example theme and does not
|
||||
* contain anything.
|
||||
* This is just an empty theme.
|
||||
*/
|
||||
|
||||
body {
|
||||
|
Loading…
Reference in New Issue
Block a user