X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/a15440ff7162c8cc0731e260cf4cacab5b998c62..5be499ab63f91b65065fe34f3a6d645efc9ae7b6:/modules/data.js diff --git a/modules/data.js b/modules/data.js index 527b928..0fab1a7 100644 --- a/modules/data.js +++ b/modules/data.js @@ -60,6 +60,12 @@ return function(sandbox) { success: function() {sandbox.publish('savingEnded', 'success');}, error: function() {sandbox.publish('savingEnded', 'error');} }); + }, + fakeSave: function() { + sandbox.publish('savingStarted'); + window.setTimeout(function() { + sandbox.publish('savingEnded', 'success') + }, 2000); } }