Bugzilla – Attachment 133676 Details for
Bug 30438
Add select all/clear buttons to invoices.tt open and closed tables
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30438: Add select all/clear all buttons to invoices.tt
Bug-30438-Add-select-allclear-all-buttons-to-invoi.patch (text/plain), 2.72 KB, created by
Owen Leonard
on 2022-04-22 12:40:40 UTC
(
hide
)
Description:
Bug 30438: Add select all/clear all buttons to invoices.tt
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2022-04-22 12:40:40 UTC
Size:
2.72 KB
patch
obsolete
>From 1f69d318178ad865089a9caed64aef760e8ba074 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Fri, 15 Apr 2022 14:00:01 +0000 >Subject: [PATCH] Bug 30438: Add select all/clear all buttons to invoices.tt > >To test: >1. Apply patch >2. Have a bunch of invoices, some open and some closed. >3. Go to Home > Acquisitions > Invoices and do a search that will > return you many of those invoices, some open and some closed. >4. Notice the 'Select all' and 'Clear all' buttons. >5. Try clicking 'Select all' on the Open invoices tab. All Open invoices > should become checked. >6. Try clicking 'Clear all' on the Open invoices tab. All open invoices > should become unchecked. >7. Try 5 - 6 again but on the Closed invoices tab. > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../prog/en/modules/acqui/invoices.tt | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt >index 8be858e6be..e54e8e0756 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt >@@ -48,6 +48,7 @@ > <label for="show_only_subscription_[% tab | html %]"> > Show only subscriptions > </label> >+ <p><a id="CheckAll[% tab | html %]table" data-cb="[% tab | html %]" class="checkall" href="#"><i class="fa fa-check"></i> Select all</a> | <a id="UncheckAll[% tab | html %]table" data-cb="[% tab | html %]" class="uncheckall" href="#"><i class="fa fa-remove"></i> Clear all</a></p> > <table id="[% tab | html %]resultst" class="result"> > <thead> > <tr> >@@ -399,6 +400,19 @@ > [% INCLUDE 'calendar.inc' %] > <script> > $(document).ready(function() { >+ $('[id^="CheckAll"]').click( function() { >+ var table_id = "#" + $(this).attr('data-cb') + "resultst"; >+ $(table_id).find('.select-invoice[type="checkbox"]').each( function() { >+ $(this).prop("checked" , true ); >+ }); >+ }); >+ $('[id^="UncheckAll"]').click( function() { >+ var table_id = "#" + $(this).attr('data-cb') + "resultst"; >+ $(table_id).find('.select-invoice[type="checkbox"]').each( function() { >+ $(this).prop("checked" , false ); >+ }); >+ }); >+ > $(".delete_invoice").click(function(){ > return confirmDelete(_("Are you sure you want to delete this invoice?")); > }); >-- >2.20.1
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 30438
:
132873
|
132922
|
133358
|
133676
|
133738