X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/7b7f19b8680ed7653359bede5833d2cffc11ef8c..42d1c68068bb2ffcfbe50768f50233f9b8064b85:/src/editor/modules/data/data.js?ds=inline diff --git a/src/editor/modules/data/data.js b/src/editor/modules/data/data.js index 67ab801..54c4c17 100644 --- a/src/editor/modules/data/data.js +++ b/src/editor/modules/data/data.js @@ -215,7 +215,19 @@ return function(sandbox) { reloadHistory(); }, - error: function() {event.error(); sandbox.publish('savingEnded', 'error', 'remote');} + error: function(data) { + event.error(); + sandbox.publish('savingEnded', 'error', 'remote'); + var dialog = Dialog.create({ + title: gettext('Error'), + text: JSON.parse(data.responseText).text.join('\n'), + executeButtonText: gettext('Close') + }); + dialog.show(); + dialog.on('execute', function(e) { + e.success(); + }); + } }); }); dialog.on('cancel', function() {