Impliment ExternalInterface calls for preventing windowunload when changes need saving
[potlatch2.git] / potlatch2.mxml
index 6ca393578ccf9e5f44b3ff4f703d84d7aa71b362..4a69acbe498dde828fb19272de377057ead172c6 100755 (executable)
                }
         private function onDataDirty(event:Event):void {
                        saveButton.enabled=true;
+            if (ExternalInterface.available) {
+              ExternalInterface.call("markChanged", false);
+            }
                }
                private function onDataClean(event:Event):void {
                        saveButton.enabled=false;
+            if (ExternalInterface.available) {
+              ExternalInterface.call("markChanged", true);
+            }
                }
                
         private function onImageryLoad(event:Event):void {