trigger shutdown for webodf on close-button

pull/1/head
Tobias Hintze 11 years ago
parent 5675002629
commit 8773748b8d

@ -75,6 +75,9 @@ var officeMain = {
joinSession: function(userId, sessionId, cb) { joinSession: function(userId, sessionId, cb) {
cb(memberId); cb(memberId);
}, },
registerCallbackForShutdown: function(webodfShutdownFunction) {
officeMain.webodfShutdownFunction = webodfShutdownFunction;
},
callback: function() { callback: function() {
// initialized. // initialized.
} }
@ -129,7 +132,7 @@ var officeMain = {
$('.documentslist, #emptyfolder, #editing-sessions').fadeIn('slow'); $('.documentslist, #emptyfolder, #editing-sessions').fadeIn('slow');
$(document.body).removeClass('claro'); $(document.body).removeClass('claro');
$('#office-content').removeClass('wide'); $('#office-content').removeClass('wide');
webodfEditor.shutdown(); officeMain.webodfShutdownFunction();
}); });
} }
}; };

Loading…
Cancel
Save