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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-3 / +5 lines)
Lines 1743-1750 Note that permanent location is a code, and location may be an authval. Link Here
1743
                [% IF bundlesEnabled %]
1743
                [% IF bundlesEnabled %]
1744
                // Add event listener for opening and closing bundle details
1744
                // Add event listener for opening and closing bundle details
1745
                $('#' + table_name + ' tbody').on('click', 'button.details-control', function () {
1745
                $('#' + table_name + ' tbody').on('click', 'button.details-control', function () {
1746
                    var tr = $(this).closest('tr');
1746
                    var button = $(this);
1747
                    var dTable = $(this).closest('table').DataTable({ 'retrieve': true });
1747
                    var tr = button.closest('tr');
1748
                    var dTable = button.closest('table').DataTable({ 'retrieve': true });
1748
1749
1749
                    var itemnumber = tr.data('itemnumber');
1750
                    var itemnumber = tr.data('itemnumber');
1750
                    var duedate = tr.data('duedate');
1751
                    var duedate = tr.data('duedate');
Lines 1754-1764 Note that permanent location is a code, and location may be an authval. Link Here
1754
                        // This row is already open - close it
1755
                        // This row is already open - close it
1755
                        row.child.hide();
1756
                        row.child.hide();
1756
                        tr.removeClass('shown');
1757
                        tr.removeClass('shown');
1758
                        button.removeClass('active');
1757
                    }
1759
                    }
1758
                    else {
1760
                    else {
1759
                        // Open this row
1761
                        // Open this row
1760
                        createChild(row, itemnumber, duedate);
1762
                        createChild(row, itemnumber, duedate);
1761
                        tr.addClass('shown');
1763
                        tr.addClass('shown');
1764
                        button.addClass('active');
1762
                    }
1765
                    }
1763
                } );
1766
                } );
1764
                [% END %]
1767
                [% END %]
1765
- 

Return to bug 28854