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 // 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.