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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt (-8 / +12 lines)
Lines 285-300 Link Here
285
    [% INCLUDE 'datatables.inc' %]
285
    [% INCLUDE 'datatables.inc' %]
286
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
286
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
287
    <script>
287
    <script>
288
        function update_tab_display(){
289
            let selected_type = $('input[name="recordtype"]:checked').val();
290
            if (selected_type == 'authority') {
291
                $("a[href='#shelves_tab_panel']").parent().hide();
292
                $("a[href='#uploadfile_tab_panel']").tab("show");
293
            } else if (selected_type == 'biblio') {
294
                $("a[href='#shelves_tab_panel']").parent().show();
295
                $("a[href='#uploadfile_tab_panel']").tab("show");
296
            }
297
        }
288
        $(document).ready(function() {
298
        $(document).ready(function() {
289
299
300
            update_tab_display();
290
            $("input[type='radio']").click(function() {
301
            $("input[type='radio']").click(function() {
291
                if ($(this).attr('id') == 'authority_type') {
302
                update_tab_display();
292
                    $("a[href='#shelves_tab_panel']").parent().hide();
293
                    $("a[href='#uploadfile_tab_panel']").tab("show");
294
                } else if ($(this).attr('id') == 'biblio_type') {
295
                    $("a[href='#shelves_tab_panel']").parent().show();
296
                    $("a[href='#uploadfile_tab_panel']").tab("show");
297
                }
298
            });
303
            });
299
304
300
            $("#selectall").click(function(e){
305
            $("#selectall").click(function(e){
301
- 

Return to bug 33624