Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere
[koha_ffzg] / koha-tmpl / intranet-tmpl / prog / en / includes / greybox.inc
index 620c254..84918c2 100644 (file)
@@ -1,7 +1,8 @@
+[% USE Asset %]
 <script type="text/javascript">
     var GB_ROOT_DIR = "[% interface %]/lib/greybox/";
 </script>
-<script type="text/javascript" src="[% interface %]/lib/greybox/AJS_[% KOHA_VERSION %].js"></script>
-<script type="text/javascript" src="[% interface %]/lib/greybox/AJS_fx_[% KOHA_VERSION %].js"></script>
-<script type="text/javascript" src="[% interface %]/lib/greybox/gb_scripts_[% KOHA_VERSION %].js"></script>
-<link href="[% interface %]/lib/greybox/gb_styles_[% KOHA_VERSION %].css" rel="stylesheet" type="text/css" />
+[% Asset.js("lib/greybox/AJS.js") %]
+[% Asset.js("lib/greybox/AJS_fx.js") %]
+[% Asset.js("lib/greybox/gb_scripts.js") %]
+[% Asset.css("lib/greybox/gb_styles.css") %]