@@ -, +, @@
details" subscriptions
- Create a subscription
- Create several orders from this subscription (quantity > 1)
- Receive partially the orders
- Go to the subscription detail page, "Acquisition details" tab
---
.../prog/en/modules/serials/subscription-detail.tt | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt
@@ -351,7 +351,10 @@
Hide already received orders
- | Show all orders
+ | Show all orders
+ | Expand all
+ | Collapse all
+
@@ -498,9 +501,20 @@
[% IF orders_grouped.size %]
$(table).treetable({
- expandable: true
+ expandable: true,
+ initialState: 'expanded',
});
$(table).treetable('expandAll');
+
+ $("#expand_all").click(function(e){
+ e.preventDefault();
+ $(table).treetable('expandAll');
+ });
+ $("#collapse_all").click(function(e){
+ e.preventDefault();
+ $(table).treetable('collapseAll');
+ });
+
[% END %]
$("#hide_received_orders").click(function(e){
--