Prevent a blink
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
[% END %]
</select>
</li>
+ [% IF serialsadditems %]
+ <li class="use_items">
+ [% ELSE %]
<li class="use_items" style="display:none">
+ [% END %]
<label for="ccode">Collection:</label>
<select name="ccode" id="ccode">
<option value="">None</option>
[% END %]
</select>
</li>
+ [% IF serialsadditems %]
+ <li class="use_items">
+ [% ELSE %]
<li class="use_items" style="display:none">
+ [% END %]
<label for="itemtype">Item type:</label>
<select name="itemtype" id="itemtype">
<option value=""></option>
});
});
- if( $("#serialsadditems-yes").prop("checked") ){
- $(".use_items").show();
- }
-
$("#serialsadditems-yes").on("change", function(){
if( $(this).prop("checked") ){
$(".use_items").show();