X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/a15440ff7162c8cc0731e260cf4cacab5b998c62..e47b0769de4853ef9c027592533804e39f247f44:/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); } }