Bug 21050: Fix datepickers on LabelItemSearch
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 16 Jul 2018 14:21:48 +0000 (11:21 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 9 Aug 2018 10:47:07 +0000 (10:47 +0000)
calendar.inc must be in the jsinclude block when jsfooter is set

Test plan:
- Open or create a label batch.
- Click "Add items" to trigger the pop-up search window.
- Date picker should work now

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tt

index d67a67c..e982150 100644 (file)
@@ -1,7 +1,6 @@
 [% SET footerjs = 1 %]
 [% INCLUDE 'doc-head-open.inc' %]<title>Koha &rsaquo;  Labels</title>
 [% INCLUDE 'doc-head-close.inc' %]
-[% INCLUDE 'calendar.inc' %]
 </head>
 
 <body id="labels_search" class="tools labels">
@@ -104,4 +103,7 @@ to add to Batch [% batch_id %]
 </form>
 </div>
 
+[% MACRO jsinclude BLOCK %]
+    [% INCLUDE 'calendar.inc' %]
+[% END %]
 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]