diff options
Diffstat (limited to 'js/viewer/viewer.js')
-rw-r--r-- | js/viewer/viewer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/viewer/viewer.js b/js/viewer/viewer.js index 01a4933c..ef0f35cf 100644 --- a/js/viewer/viewer.js +++ b/js/viewer/viewer.js @@ -361,7 +361,7 @@ var odfViewer = { var self = this; var template = dlg.querySelector('.template-model').cloneNode(true); template.className = ''; - template.querySelector('img').src = data.preview; + template.querySelector('img').src = OC.generateUrl('apps/richdocuments/template/preview/'+data.id); template.querySelector('h2').textContent = data.name; template.onclick = function() { dlg.dataset.templateId = data.id; |