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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt (-2 / +2 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
                                <li>
202
                                <li class="use_items" style="display:none">
203
                                    <label for="ccode">Collection:</label>
203
                                    <label for="ccode">Collection:</label>
204
                                    <select name="ccode" id="ccode">
204
                                    <select name="ccode" id="ccode">
205
                                        <option value="">None</option>
205
                                        <option value="">None</option>
Lines 212-218 fieldset.rows table { clear: none; margin: 0; } Link Here
212
                                        [% END %]
212
                                        [% END %]
213
                                    </select>
213
                                    </select>
214
                                </li>
214
                                </li>
215
                                <li>
215
                                <li class="use_items" style="display:none">
216
                                    <label for="itemtype">Item type:</label>
216
                                    <label for="itemtype">Item type:</label>
217
                                    <select name="itemtype" id="itemtype">
217
                                    <select name="itemtype" id="itemtype">
218
                                        <option value=""></option>
218
                                        <option value=""></option>
(-)a/koha-tmpl/intranet-tmpl/prog/js/subscription-add.js (-1 / +20 lines)
Lines 726-729 $(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(){
734
        if( $(this).prop("checked") ){
735
            $(".use_items").show();
736
        } else {
737
            $(".use_items").hide().find("select").val("");
738
        }
739
    });
740
741
    $("#serialsadditems-no").on("change", function(){
742
        if( $(this).prop("checked") ){
743
            $(".use_items").hide().find("select").val("");
744
        } else {
745
            $(".use_items").show();
746
        }
747
    });
748
729
});
749
});
730
- 

Return to bug 26377