Reformat dates. Surprisingly limited options for parsing and displaying dates.
[potlatch2.git] / resources / potlatch2.html
index abdf193d8e49d2c830da175747da370dfbb2e298..f4533ca618f8ae9601f79c2fec74e34fb1fa7c96 100644 (file)
                return args;
        }
 
+    var changesaved=true;
+  
+    window.onbeforeunload=function() {
+        if (!changesaved) {
+            return 'You have unsaved changes. You need to press the Save button to save them';
+        }
+    }
+
+    function markChanged(a) { changesaved=a; } /* called from flash */
+
        var args = getArgs();
        var lat;
        var lon;