Bugzilla – Attachment 89589 Details for
Bug 21588
Add "Collapse/Expand" options on subscription-detail page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21588: Add expand/collapse all links to the "Acquisition details" subscriptions
Bug-21588-Add-expandcollapse-all-links-to-the-Acqu.patch (text/plain), 2.56 KB, created by
Katrin Fischer
on 2019-05-11 09:40:55 UTC
(
hide
)
Description:
Bug 21588: Add expand/collapse all links to the "Acquisition details" subscriptions
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-05-11 09:40:55 UTC
Size:
2.56 KB
patch
obsolete
>From 24330e3688a65d3e7647a7078617de3d65625dc7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 9 May 2019 12:27:15 -0500 >Subject: [PATCH] Bug 21588: Add expand/collapse all links to the "Acquisition > details" subscriptions > >In order to make the view cleaner, a librarian may need to expand or >collapse all the orders at once. > >Test plan: >- Create a subscription >- Create several orders from this subscription (quantity > 1) >- Receive partially the orders >- Go to the subscription detail page, "Acquisition details" tab >=> Notice the 2 new links "Expand all" and "Collapse all" >Make sure they work as expected. > >Also note that a bug has been fixed, when the page is loaded the tree is >now expanded. > >Signed-off-by: Liz Rea <wizzyrea@gmail.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../prog/en/modules/serials/subscription-detail.tt | 18 ++++++++++++++++-- > 1 file changed, 16 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt >index a30270abf7..d7f7cfdc09 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt >@@ -351,7 +351,10 @@ > <caption> > <span class="actions"> > <a href="#" id="hide_received_orders">Hide already received orders</a> >- | <a href="#" id="show_all_orders">Show all orders</a></span> >+ | <a href="#" id="show_all_orders">Show all orders</a> >+ | <a href="#" id="expand_all">Expand all</a> >+ | <a href="#" id="collapse_all">Collapse all</a> >+ </span> > </caption> > > <thead> >@@ -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){ >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21588
:
89518
|
89519
| 89589