cloudsuite: rework onClouse method
This commit is contained in:
parent
32bc4fdbfe
commit
199fb6083e
@ -598,25 +598,10 @@ var documentsMain = {
|
||||
$(window).off('unload');
|
||||
parent.location.hash = "";
|
||||
|
||||
documentsMain.webodfEditorInstance.endEditing();
|
||||
documentsMain.webodfEditorInstance.closeSession(function() {
|
||||
$('footer,nav').show();
|
||||
documentsMain.webodfEditorInstance.destroy(documentsMain.UI.hideEditor);
|
||||
|
||||
var url = '';
|
||||
if (documentsMain.isGuest){
|
||||
url = OC.generateUrl('apps/documents/ajax/user/disconnectGuest', {});
|
||||
} else {
|
||||
url = OC.generateUrl('apps/documents/ajax/user/disconnect', {});
|
||||
}
|
||||
|
||||
$.post(url, {
|
||||
memberId : documentsMain.memberId,
|
||||
esId: documentsMain.esId
|
||||
});
|
||||
|
||||
documentsMain.UI.hideEditor();
|
||||
$(documentsMain.toolbar).remove();
|
||||
documentsMain.show();
|
||||
});
|
||||
},
|
||||
|
||||
onTerminate: function(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user