Merge branch 'master' into mapquest
[potlatch2.git] / resources / potlatch2.html
index abdf193d8e49d2c830da175747da370dfbb2e298..15649da6b1e97d12de98d4a85d554c5f9619b652 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;
@@ -59,6 +69,9 @@
        fo.addVariable("oauth_consumer_key", "fiM1IoqnKJk4JCfcl63DA");
        fo.addVariable("oauth_consumer_secret", "7fYgJK9M4vB1CvBZ6jEsPGxYK9UD1hEnI6NqTxNGs");
        fo.addVariable("serverName", "api06 Test On Dev");
+    fo.addVariable("show_help", "once");
+    fo.addVariable("site_name", "MapQuest");
+    fo.addVariable("force_auth", "force");
        fo.write("map");