diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-15 11:09:44 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-15 11:09:44 +0100 |
| commit | 1ce532c44238236988f6739e5bfe5e5022a59630 (patch) | |
| tree | b2205c974ef0ec397a24857b4a4f32df0daba416 | |
| parent | 2bdc1b3606d38ffe021f3e01c0ca931b5157d691 (diff) | |
| download | liberty-1ce532c44238236988f6739e5bfe5e5022a59630.tar.gz liberty-1ce532c44238236988f6739e5bfe5e5022a59630.tar.bz2 liberty-1ce532c44238236988f6739e5bfe5e5022a59630.zip | |
Move template javascript to themes ? as to if it should be in liberty
| -rwxr-xr-x | templates/mime/pdf/view.tpl | 2 | ||||
| -rwxr-xr-x | templates/mime/video/player.tpl | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/templates/mime/pdf/view.tpl b/templates/mime/pdf/view.tpl index 327d19e..3a41427 100755 --- a/templates/mime/pdf/view.tpl +++ b/templates/mime/pdf/view.tpl @@ -1,6 +1,6 @@ {strip} {if !empty($attachment.source_file)} - <iframe src="{$smarty.const.UTIL_PKG_URL}javascript/pdfjs/web/viewer.html?file={$smarty.const.BIT_ROOT_URI}{$attachment.source_url}?zoom=page-width + <iframe src="{$smarty.const.THEMES_PKG_URL}js/pdfjs-5.2.133/web/viewer.html?file={$smarty.const.BIT_ROOT_URI}{$attachment.source_url}?zoom=page-width {if !empty($highlight)}#search={$highlight|escape}{/if}" width="100%" height="600px"></iframe> {include file="bitpackage:liberty/mime_meta_inc.tpl"} {else} diff --git a/templates/mime/video/player.tpl b/templates/mime/video/player.tpl index 364c3f1..048c566 100755 --- a/templates/mime/video/player.tpl +++ b/templates/mime/video/player.tpl @@ -1,7 +1,6 @@ {strip} {if $attachment.media_url} -<link href="{$smarty.const.UTIL_PKG_URL}javascript/videojs/src/video-js.css" rel="stylesheet" /> -<script src="{$smarty.const.UTIL_PKG_URL}javascript/videojs/src/video.js"></script> +<script src="{$smarty.const.THEMES_PKG_URL}js/videojs/src/js/video.js"></script> <video id="my-video" class="video-js" controls preload="auto" width="100%" height="600px"> <source src="{$attachment.source_url}" type="video/mp4"> |
