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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt (-3 / +16 lines)
Lines 351-357 Link Here
351
                <caption>
351
                <caption>
352
                  <span class="actions">
352
                  <span class="actions">
353
                  <a href="#" id="hide_received_orders">Hide already received orders</a>
353
                  <a href="#" id="hide_received_orders">Hide already received orders</a>
354
                  | <a href="#" id="show_all_orders">Show all orders</a></span>
354
                  | <a href="#" id="show_all_orders">Show all orders</a>
355
                  | <a href="#" id="expand_all">Expand all</a>
356
                  | <a href="#" id="collapse_all">Collapse all</a>
357
                  </span>
355
                </caption>
358
                </caption>
356
359
357
                <thead>
360
                <thead>
Lines 498-506 Link Here
498
501
499
            [% IF orders_grouped.size %]
502
            [% IF orders_grouped.size %]
500
                $(table).treetable({
503
                $(table).treetable({
501
                    expandable: true
504
                    expandable: true,
505
                    initialState: 'expanded',
502
                });
506
                });
503
                $(table).treetable('expandAll');
507
                $(table).treetable('expandAll');
508
509
                $("#expand_all").click(function(e){
510
                    e.preventDefault();
511
                    $(table).treetable('expandAll');
512
                });
513
                $("#collapse_all").click(function(e){
514
                    e.preventDefault();
515
                    $(table).treetable('collapseAll');
516
                });
517
504
            [% END %]
518
            [% END %]
505
519
506
            $("#hide_received_orders").click(function(e){
520
            $("#hide_received_orders").click(function(e){
507
- 

Return to bug 21588