pass session id to webodf

This commit is contained in:
Tobias Hintze 2013-08-07 13:04:42 +02:00
parent fa96c76d5d
commit 9400fc8218

View File

@ -63,12 +63,13 @@ var officeMain = {
// in case we are on the public sharing page we shall display the odf into the preview tag
$('#preview').html(canvashtml);
runtime.assert(response.es_id, "invalid session id.");
webodfEditor.boot(
{
collaborative: "owncloud",
docUrl: doclocation,
loginProcedure: function(cb) {
cb("0", OC.currentUser, "token");
cb(response.es_id, OC.currentUser, "token");
},
callback: function() {
// initialized.