[Phoenix-commits] rev 14554 - public/phoenix/trunk/phoenix/prototypes/prototype1/src/chrome/content

andi at wyona.com andi at wyona.com
Fri Jun 23 00:08:46 CEST 2006


Author: andi
Date: 2006-06-23 00:08:44 +0200 (Fri, 23 Jun 2006)
New Revision: 14554

Modified:
   public/phoenix/trunk/phoenix/prototypes/prototype1/src/chrome/content/editor.js
Log:
Give user feedback that document was successfully saved to CMS.


Modified: public/phoenix/trunk/phoenix/prototypes/prototype1/src/chrome/content/editor.js
===================================================================
--- public/phoenix/trunk/phoenix/prototypes/prototype1/src/chrome/content/editor.js	2006-06-22 21:55:28 UTC (rev 14553)
+++ public/phoenix/trunk/phoenix/prototypes/prototype1/src/chrome/content/editor.js	2006-06-22 22:08:44 UTC (rev 14554)
@@ -425,7 +425,13 @@
     documentUploadFinished: function (aDocumentData) {
         /* DEBUG */ dump("Phoenix:editor.js:Editor.documentUpoadFinished(\"" + aDocumentData + "\") invoked\n");
 
-        // report success
-        gEditorController.model.unsetDirty();
+        // check the return headers for failure code
+
+        if (true) {
+            // report success
+            gEditorController.model.unsetDirty();
+
+            alert("Document saved successfully.");
+        }
     }
 }




More information about the Phoenix-commits mailing list