Collab editor:

- Fix save as tries to save the original file as well
This commit is contained in:
Hadi Nategh 2016-11-17 13:50:53 +01:00
parent 497c464f7c
commit d9e509b6ff

View File

@ -272,6 +272,7 @@ app.classes.filemanager = app.classes.filemanager.extend({
success: function(data) {
egw(window).message(egw.lang('Document %1 successfully has been saved.', file_path));
self.editor.setDocumentModified(false);
if (_egwAction.id == 'saveas') return;
egw.json('filemanager.filemanager_collab.ajax_actions',[{'es_id':self.collab_server.es_id, 'file_path': egw.webserverUrl+'/webdav.php'+file_path}, 'save'], function(){
afterSaveCallback.call(self,{});
}).sendRequest();