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