Rather than leaving the Submit button disabled, and a cancel button after upload...
authorThomas Wood <grand.edgemaster@gmail.com>
Sat, 13 Mar 2010 22:27:17 +0000 (22:27 +0000)
committerThomas Wood <grand.edgemaster@gmail.com>
Sat, 13 Mar 2010 22:27:17 +0000 (22:27 +0000)
net/systemeD/potlatch2/save/SaveDialog.mxml

index de4145ee6df2e8eb3c9e492d39751cffad36a092..5fb732d853fb9c2bac0e20b6794f3d3ec20a6f69 100644 (file)
@@ -61,7 +61,7 @@
 
   <mx:ControlBar>
     <mx:Spacer width="100%"/>
-    <mx:Button label="Cancel" click="close();"/>
+    <mx:Button id="cancelButton" label="Cancel" click="close();"/>
     <mx:Button id="saveButton" label="Save >" click="startSave();"/>
   </mx:ControlBar>
   
             succeed("All Data Saved!");
         else
             fail("Failure when uploading data");
+
+        saveButton.parent.removeChild(saveButton);
+        cancelButton.label = "Close";
     }
     
     private function addStatus(text:String):void {