Bugzilla – Attachment 96910 Details for
Bug 22773
Bulk close invoices and filter invoice view (open/closed)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22773: The deprecated plugin is removed
Bug-22773-The-deprecated-plugin-is-removed.patch (text/plain), 4.19 KB, created by
ByWater Sandboxes
on 2020-01-07 15:40:06 UTC
(
hide
)
Description:
Bug 22773: The deprecated plugin is removed
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2020-01-07 15:40:06 UTC
Size:
4.19 KB
patch
obsolete
>From a159e9a9b7524ee64c962411a7d3dd330dc42cc6 Mon Sep 17 00:00:00 2001 >From: Devinim <kohadevinim@devinim.com.tr> >Date: Tue, 12 Nov 2019 09:58:37 +0000 >Subject: [PATCH] Bug 22773: The deprecated plugin is removed > >Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com> >--- > .../lib/jquery/plugins/dataTables.fnFilterAll.js | 39 ---------------------- > .../prog/en/modules/acqui/invoices.tt | 17 +++++----- > 2 files changed, 9 insertions(+), 47 deletions(-) > delete mode 100644 koha-tmpl/intranet-tmpl/lib/jquery/plugins/dataTables.fnFilterAll.js > >diff --git a/koha-tmpl/intranet-tmpl/lib/jquery/plugins/dataTables.fnFilterAll.js b/koha-tmpl/intranet-tmpl/lib/jquery/plugins/dataTables.fnFilterAll.js >deleted file mode 100644 >index 91c9d2093e..0000000000 >--- a/koha-tmpl/intranet-tmpl/lib/jquery/plugins/dataTables.fnFilterAll.js >+++ /dev/null >@@ -1,39 +0,0 @@ >-/** >- * Apply the same filter to all DataTable instances on a particular page. The >- * function call exactly matches that used by `fnFilter()` so regular expression >- * and individual column sorting can be used. >- * >- * DataTables 1.10+ provides this ability through its new API, which is able to >- * to control multiple tables at a time. >- * `$('.dataTable').DataTable().search( ... )` for example will apply the same >- * filter to all tables on the page. The new API should be used in preference >- * to this older method if at all possible. >- * >- * @name fnFilterAll >- * @summary Apply a common filter to all DataTables on a page >- * @author [Kristoffer Karlström](http://www.kmmtiming.se/) >- * @deprecated >- * >- * @param {string} sInput Filtering input >- * @param {integer} [iColumn=null] Column to apply the filter to >- * @param {boolean} [bRegex] Regular expression flag >- * @param {boolean} [bSmart] Smart filtering flag >- * >- * @example >- * $(document).ready(function() { >- * var table = $(".dataTable").dataTable(); >- * >- * $("#search").keyup( function () { >- * // Filter on the column (the index) of this element >- * table.fnFilterAll(this.value); >- * } ); >- * }); >- */ >- >-jQuery.fn.dataTableExt.oApi.fnFilterAll = function(oSettings, sInput, iColumn, bRegex, bSmart) { >- var settings = $.fn.dataTableSettings; >- >- for ( var i=0 ; i<settings.length ; i++ ) { >- settings[i].oInstance.fnFilter( sInput, iColumn, bRegex, bSmart); >- } >-}; >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 7f5e08ac2a..ff96042a28 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt >@@ -23,16 +23,16 @@ > <h1>Invoices</h1> > [% IF ( do_search ) %] > [% IF invoices %] >- <label for="show_only_subscription"> >- <input type="checkbox" style="vertical-align: middle;" id="show_only_subscription" /> >- Show only subscriptions >- </label> > [% BLOCK invoices_table %] > [% IF closed %] > [% SET tab = 'closed' %] > [% ELSE %] > [% SET tab = 'opened' %] > [% END %] >+ <label for="show_only_subscription"> >+ <input type="checkbox" style="vertical-align: middle;" class="show_only_subscription" data-tableid="[% tab %]resultst"/> >+ Show only subscriptions >+ </label> > <table id="[% tab %]resultst" class="result"> > <thead> > <tr> >@@ -357,13 +357,14 @@ > autoWidth: false > })); > >- $("#show_only_subscription").prop("checked", false); >+ $(".show_only_subscription").prop("checked", false); > >- $("#show_only_subscription").click(function(){ >+ $(".show_only_subscription").click(function(){ >+ var table_id = $(this).attr("data-tableid"); > if ( $(this).prop("checked") ) { >- resultst.fnFilterAll( "1", 0, true ); >+ $('#'+table_id).dataTable().fnFilter( "1", 0, true ); > } else { >- resultst.fnFilterAll( '', 0 ); >+ $('#'+table_id).dataTable().fnFilter( '', 0 ); > } > }); > >-- >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 22773
:
93357
|
93375
|
93448
|
93660
|
94411
|
95290
|
96906
|
96907
|
96908
|
96909
|
96910
|
98729
|
98730
|
98731
|
98732
|
98733
|
106538
|
106539
|
106540
|
106541
|
106542
|
106543
|
106544
|
115420
|
115421
|
115422
|
115423
|
115424
|
115425
|
115426
|
116010
|
119282
|
119283
|
119284
|
119285
|
119286
|
119287
|
119288
|
119289
|
119290