Bug 9618: (follow-up) include link to jQuery only if needed
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 27 May 2013 13:56:28 +0000 (15:56 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 16 Sep 2013 16:05:51 +0000 (16:05 +0000)
The jQuery lib is useful only if js code is filled into the
intranetuserjs pref.

Signed-off-by: Campbell Reid-Tait <campbellreidtait@gmail.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
To test:
- Use Quick spine label creator
- Make sure you have Javascript in your intranetuserjs system
  preference
- Validate Javascript effect on screen or check source code
  to make sure your code is visible there.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt

index f028357..b5b9256 100644 (file)
@@ -11,8 +11,8 @@
                }
        </style>
 [% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %]
-<script type="text/javascript" src="[% interface %]/lib/jquery/jquery.js"></script>
 [% IF ( intranetuserjs ) %]
+    <script type="text/javascript" src="[% interface %]/lib/jquery/jquery.js"></script>
     <script type="text/javascript">
     //<![CDATA[
     [% intranetuserjs %]
@@ -39,4 +39,4 @@
                        </span>
                </body>
        [% END %]
-</html>
\ No newline at end of file
+</html>