X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/a15440ff7162c8cc0731e260cf4cacab5b998c62..601fd5decd2c36c4612487b8bfeb6df7d94a4ac2:/modules/data.js?ds=inline 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); } }