W.I.P. collab editor:

- Implement delete action, including cleaning up the tables
This commit is contained in:
Hadi Nategh
2016-08-22 13:05:47 +02:00
parent 224c4ce446
commit 81b78074ce
2 changed files with 30 additions and 2 deletions

View File

@@ -295,7 +295,7 @@ app.classes.filemanager = app.classes.filemanager.extend({
{
if (_btn == 2)
{
self._do_action('delete', [fullpath], false, path);
self._do_action('delete', [fullpath,path+'/.'+self.collab_server.es_id+'.webodf.odt'], false, path);
self.editor_close(_egwAction);
}
},
@@ -458,6 +458,17 @@ app.classes.filemanager = app.classes.filemanager.extend({
}
});
});
},
_do_action_callback:function(_data)
{
this._super.apply(this,arguments);
switch(_data.action)
{
case 'delete':
if (!_data.errs) egw.json('filemanager.filemanager_collab.ajax_actions', [this.collab_server.es_id, 'delete']).sendRequest();
}
}
});