Bugzilla – Attachment 132873 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.56 KB, created by
Lucas Gass (lukeg)
on 2022-04-01 20:11:11 UTC
(
hide
)
Description:
Bug 30438: Add select all/clear all buttons to invoices.tt
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2022-04-01 20:11:11 UTC
Size:
2.56 KB
patch
obsolete
>From e06e09aeeb9ce7410fb7cf9325b3a3be9e0c7364 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Fri, 1 Apr 2022 20:04:47 +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. >--- > .../prog/en/modules/acqui/invoices.tt | 17 +++++++++++++++++ > 1 file changed, 17 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 3809d071f7..a120a41664 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,8 @@ > <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> >@@ -371,6 +373,21 @@ > [% 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 ); >+ }); >+ }); >+ > $('#invoicestabs').tabs(); > $(".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