cloudsuite: remove unused webodfEditorInstance

This commit is contained in:
Henry Castro 2015-10-29 20:46:57 -04:00
parent 64a729ea69
commit 57b90752c6

View File

@ -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(){