View | Details | Raw Unified | Return to bug 26377
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt (+8 lines)
Lines 199-205 fieldset.rows table { clear: none; margin: 0; } Link Here
199
                                        [% END %]
199
                                        [% END %]
200
                                    </select>
200
                                    </select>
201
                                </li>
201
                                </li>
202
                                [% IF serialsadditems %]
203
                                <li class="use_items">
204
                                [% ELSE %]
202
                                <li class="use_items" style="display:none">
205
                                <li class="use_items" style="display:none">
206
                                [% END %]
203
                                    <label for="ccode">Collection:</label>
207
                                    <label for="ccode">Collection:</label>
204
                                    <select name="ccode" id="ccode">
208
                                    <select name="ccode" id="ccode">
205
                                        <option value="">None</option>
209
                                        <option value="">None</option>
Lines 212-218 fieldset.rows table { clear: none; margin: 0; } Link Here
212
                                        [% END %]
216
                                        [% END %]
213
                                    </select>
217
                                    </select>
214
                                </li>
218
                                </li>
219
                                [% IF serialsadditems %]
220
                                <li class="use_items">
221
                                [% ELSE %]
215
                                <li class="use_items" style="display:none">
222
                                <li class="use_items" style="display:none">
223
                                [% END %]
216
                                    <label for="itemtype">Item type:</label>
224
                                    <label for="itemtype">Item type:</label>
217
                                    <select name="itemtype" id="itemtype">
225
                                    <select name="itemtype" id="itemtype">
218
                                        <option value=""></option>
226
                                        <option value=""></option>
(-)a/koha-tmpl/intranet-tmpl/prog/js/subscription-add.js (-5 lines)
Lines 726-735 $(document).ready(function() { Link Here
726
        });
726
        });
727
    });
727
    });
728
728
729
    if( $("#serialsadditems-yes").prop("checked") ){
730
        $(".use_items").show();
731
    }
732
733
    $("#serialsadditems-yes").on("change", function(){
729
    $("#serialsadditems-yes").on("change", function(){
734
        if( $(this).prop("checked") ){
730
        if( $(this).prop("checked") ){
735
            $(".use_items").show();
731
            $(".use_items").show();
736
- 

Return to bug 26377