diff --git a/index.php b/index.php index c8cacc2..09fe4c9 100644 --- a/index.php +++ b/index.php @@ -32,6 +32,23 @@ $docRoot = str_replace("\\","/",$_SERVER['DOCUMENT_ROOT']); if (strrpos($docRoot,"/")==strlen($docRoot)-1) {$docRoot = substr($docRoot,0,strlen($docRoot)-1);}; echo 'fullPath = "'.$docRoot.'";'.PHP_EOL; ?> +window.onbeforeunload = function() { + for (var i=0; i<=top.ICEcoder.changedContent.length; i++) { + if (top.ICEcoder.changedContent[i]==1) { + return "You have some unsaved changes."; + } + } +} + +lastOpenFiles = []; @@ -62,7 +82,7 @@ echo 'fullPath = "'.$docRoot.'";'.PHP_EOL; -
+
New File New Folder