cloudsuite: rework onClouse method
This commit is contained in:
parent
32bc4fdbfe
commit
199fb6083e
@ -598,25 +598,10 @@ var documentsMain = {
|
|||||||
$(window).off('unload');
|
$(window).off('unload');
|
||||||
parent.location.hash = "";
|
parent.location.hash = "";
|
||||||
|
|
||||||
documentsMain.webodfEditorInstance.endEditing();
|
|
||||||
documentsMain.webodfEditorInstance.closeSession(function() {
|
|
||||||
$('footer,nav').show();
|
$('footer,nav').show();
|
||||||
documentsMain.webodfEditorInstance.destroy(documentsMain.UI.hideEditor);
|
documentsMain.UI.hideEditor();
|
||||||
|
$(documentsMain.toolbar).remove();
|
||||||
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.show();
|
documentsMain.show();
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onTerminate: function(){
|
onTerminate: function(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user