From 8773748b8d979683ca4c319e10b977128badcaaa Mon Sep 17 00:00:00 2001 From: Tobias Hintze Date: Sat, 17 Aug 2013 14:54:49 +0200 Subject: [PATCH] trigger shutdown for webodf on close-button --- js/office.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/office.js b/js/office.js index 4b1c1b4c..3d19d123 100644 --- a/js/office.js +++ b/js/office.js @@ -75,6 +75,9 @@ var officeMain = { joinSession: function(userId, sessionId, cb) { cb(memberId); }, + registerCallbackForShutdown: function(webodfShutdownFunction) { + officeMain.webodfShutdownFunction = webodfShutdownFunction; + }, callback: function() { // initialized. } @@ -129,7 +132,7 @@ var officeMain = { $('.documentslist, #emptyfolder, #editing-sessions').fadeIn('slow'); $(document.body).removeClass('claro'); $('#office-content').removeClass('wide'); - webodfEditor.shutdown(); + officeMain.webodfShutdownFunction(); }); } };