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
|
// in case we are on the public sharing page we shall display the odf into the preview tag
|
||||||
$('#preview').html(canvashtml);
|
$('#preview').html(canvashtml);
|
||||||
|
|
||||||
|
runtime.assert(response.es_id, "invalid session id.");
|
||||||
webodfEditor.boot(
|
webodfEditor.boot(
|
||||||
{
|
{
|
||||||
collaborative: "owncloud",
|
collaborative: "owncloud",
|
||||||
docUrl: doclocation,
|
docUrl: doclocation,
|
||||||
loginProcedure: function(cb) {
|
loginProcedure: function(cb) {
|
||||||
cb("0", OC.currentUser, "token");
|
cb(response.es_id, OC.currentUser, "token");
|
||||||
},
|
},
|
||||||
callback: function() {
|
callback: function() {
|
||||||
// initialized.
|
// initialized.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user