cloudsuite: remove unused webodfEditorInstance
This commit is contained in:
parent
64a729ea69
commit
57b90752c6
@ -560,14 +560,7 @@ var documentsMain = {
|
|||||||
setTimeout(OC.Notification.hide, 7000);
|
setTimeout(OC.Notification.hide, 7000);
|
||||||
}
|
}
|
||||||
documentsMain.prepareGrid();
|
documentsMain.prepareGrid();
|
||||||
try {
|
documentsMain.UI.hideEditor();
|
||||||
documentsMain.webodfEditorInstance.endEditing();
|
|
||||||
documentsMain.webodfEditorInstance.closeSession(function() {
|
|
||||||
documentsMain.webodfEditorInstance.destroy(documentsMain.UI.hideEditor);
|
|
||||||
});
|
|
||||||
} catch (e){
|
|
||||||
documentsMain.UI.hideEditor();
|
|
||||||
}
|
|
||||||
|
|
||||||
documentsMain.show();
|
documentsMain.show();
|
||||||
$('footer,nav').show();
|
$('footer,nav').show();
|
||||||
@ -604,14 +597,9 @@ var documentsMain = {
|
|||||||
async: false // Should be sync to complete before the page is closed
|
async: false // Should be sync to complete before the page is closed
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
documentsMain.webodfEditorInstance.endEditing();
|
|
||||||
documentsMain.webodfEditorInstance.closeSession(function() {
|
|
||||||
if (documentsMain.isGuest){
|
if (documentsMain.isGuest){
|
||||||
$('footer,nav').show();
|
$('footer,nav').show();
|
||||||
}
|
}
|
||||||
documentsMain.webodfEditorInstance.destroy(documentsMain.UI.hideEditor);
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
show: function(){
|
show: function(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user