nodeBreadCrumbs module
[fnpeditor.git] / modules / data.js
index 527b928..0fab1a7 100644 (file)
@@ -60,6 +60,12 @@ return function(sandbox) {
                 success: function() {sandbox.publish('savingEnded', 'success');},\r
                 error: function() {sandbox.publish('savingEnded', 'error');}\r
             });\r
                 success: function() {sandbox.publish('savingEnded', 'success');},\r
                 error: function() {sandbox.publish('savingEnded', 'error');}\r
             });\r
+        },\r
+        fakeSave: function() {\r
+            sandbox.publish('savingStarted');\r
+            window.setTimeout(function() {\r
+                sandbox.publish('savingEnded', 'success')\r
+            }, 2000);\r
         }\r
         \r
     }\r
         }\r
         \r
     }\r