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