Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
WebODF: Use ajxpServerAccessPath instead hardcoding index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Apr 21, 2014
1 parent e147725 commit b4f700f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion core/src/plugins/editor.webodf/class.WebodfEditor.js
Expand Up @@ -54,7 +54,6 @@ Class.create("WebodfEditor", AbstractEditor, {
$super(nodeOrNodes);
this.node = nodeOrNodes;
var fileName = nodeOrNodes.getPath();
var fileContent = ajxpBootstrap.parameters.get('ajxpServerAccess')+'&get_action=download&file='+fileName;

this.contentMainContainer = this.element.down('#webodf_container');
this.contentMainContainer.src = 'plugins/editor.webodf/frame.php?token='+Connexion.SECURE_TOKEN+'&file='+fileName;
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/editor.webodf/frame.php
Expand Up @@ -10,7 +10,7 @@ function init()
{
var odfelement = document.getElementById("odf");
window.odfcanvas = new odf.OdfCanvas(odfelement);
window.odfcanvas.load("../../index.php?secure_token=<?php echo $AJXP_SECURE_TOKEN; ?>&get_action=download&file=<?php echo $AJXP_FILE_URL; ?>");
window.odfcanvas.load("../../" + window.parent.ajxpServerAccessPath + "&get_action=download&file=<?php echo $AJXP_FILE_URL; ?>");
//window.odfcanvas.setEditable(true);
/*
odfcanvas.odfContainer().save(function(err){
Expand Down

0 comments on commit b4f700f

Please sign in to comment.