diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-05-20 16:00:53 +0400 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-05-20 16:00:53 +0400 |
commit | 43a9a99a851fbe75dff787b3cd9ee7eb7b90b371 (patch) | |
tree | 5586613cab22af9b73debecc4647a7ff9f865d50 /files_odfviewer | |
parent | 353ee5b68833912c351b91247b1867aa7bda8d1f (diff) |
closes #1115
Diffstat (limited to 'files_odfviewer')
-rw-r--r-- | files_odfviewer/js/viewer.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/files_odfviewer/js/viewer.js b/files_odfviewer/js/viewer.js index 167b45729..f5bcaafcf 100644 --- a/files_odfviewer/js/viewer.js +++ b/files_odfviewer/js/viewer.js @@ -18,7 +18,9 @@ function viewOdf(dir, file) { // fade out file list and show pdf canvas $('table').fadeOut('slow').promise().done(function(){; var canvashtml = '<div id="odf-canvas"></div>'; - $('table').after(canvashtml); + $('table').after(canvashtml); + // in case we are on the public sharing page we shall display the odf into the preview tag + $('#preview').html(canvashtml); var odfelement = document.getElementById("odf-canvas"); var odfcanvas = new odf.OdfCanvas(odfelement); |