Bugzilla – Attachment 21634 Details for
Bug 9044
Allow to select items on catalogue/detail.pl and trigger actions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9044: Set the number of filters according to number of columns
Bug-9044-Set-the-number-of-filters-according-to-nu.patch (text/plain), 1.59 KB, created by
Julian Maurice
on 2013-09-30 07:04:01 UTC
(
hide
)
Description:
Bug 9044: Set the number of filters according to number of columns
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2013-09-30 07:04:01 UTC
Size:
1.59 KB
patch
obsolete
>From 5afd7fb81d72254aec8b5b49ac306d9e3b79f83a Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Mon, 30 Sep 2013 09:02:30 +0200 >Subject: [PATCH] Bug 9044: Set the number of filters according to number of > columns > >--- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >index dc979da..26f945c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -176,11 +176,20 @@ function verify_images() { > table = $("#" + id + " table"); > if (table.length == 1) { > filters_row = table.find('thead tr.filters_row'); >+ >+ [% IF StaffDetailItemSelection %] >+ var aoColumns = []; >+ filters_row.find('th').each(function() { >+ aoColumns.push('text'); >+ }); >+ aoColumns[0] = null; >+ [% END %] >+ > if (table.find('thead tr.columnFilter').length == 0) { > table.dataTable().columnFilter({ > 'sPlaceHolder': 'head:after' > [% IF StaffDetailItemSelection %] >- , aoColumns: [ null, 'text', 'text', 'text', 'text', 'text', 'text', 'text' ] >+ , 'aoColumns': aoColumns > [% END %] > }); > filters_row.addClass('columnFilter'); >-- >1.7.10.4
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 9044
:
13344
|
13513
|
13933
|
14737
|
16612
|
16707
|
16708
|
16711
|
19060
|
19344
|
19913
|
19914
|
19915
|
19916
|
21324
|
21325
|
21326
|
21327
|
21561
|
21562
|
21563
|
21564
|
21591
|
21634
|
21683
|
21745
|
21746
|
21747
|
21748
|
21749