- url: '/editor/' + document_id,\r
- data: JSON.stringify({document:doc})\r
+ url: '/' + gettext('editor') + '/' + document_id,\r
+ data: JSON.stringify({document:doc}),\r
+ success: function() {sandbox.publish('savingEnded', 'success');},\r
+ error: function() {sandbox.publish('savingEnded', 'error');}\r