pass session id to webodf
This commit is contained in:
parent
fa96c76d5d
commit
9400fc8218
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user