Bugzilla – Attachment 116614 Details for
Bug 27653
Do not include 'caption' row in print/copy export of datatables
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27653: [Alternate] Use toolbar elements instead of captions
Bug-27653-Alternate-Use-toolbar-elements-instead-o.patch (text/plain), 4.27 KB, created by
Nick Clemens (kidclamp)
on 2021-02-09 19:12:26 UTC
(
hide
)
Description:
Bug 27653: [Alternate] Use toolbar elements instead of captions
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2021-02-09 19:12:26 UTC
Size:
4.27 KB
patch
obsolete
>From 6037f22d10dc691bb2e74ab083c232aaf4e1b80e Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 9 Feb 2021 14:39:35 +0000 >Subject: [PATCH] Bug 27653: [Alternate] Use toolbar elements instead of > captions > >The aqbudgets and aqui-home tables use captions for additional table controls - these are >more appropriate as a DataTables custom toolbar > >To test: >1 - View the tables on acquisitions home and budgets views >2 - Note the 'Expand all...' control row >3 - Apply patch >4 - The row remains, but is below the table controls >5 - The row is not included when printing or copying the table >--- > .../intranet-tmpl/prog/en/modules/acqui/acqui-home.tt | 18 +++--------------- > .../intranet-tmpl/prog/en/modules/admin/aqbudgets.tt | 14 +++++--------- > 2 files changed, 8 insertions(+), 24 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt >index c9b7296017..895af6e7b1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt >@@ -79,20 +79,6 @@ > > <div id="BudgetsAndFunds"> > <table id="accounts"> >- <caption> >- <span class="actions"><a href="#" id="expand_all">Expand all</a> >- | <a href="#" id="collapse_all">Collapse all</a> >- | <a href="#" id="hide_inactive">Hide inactive budgets</a> >- | <a href="#" id="show_inactive">Show inactive budgets</a> >- | <select id="library-filter"> >- <option value="">Filter by library</option> >- [% FOREACH b IN Branches.all %] >- <option value="[% b.branchname | html %]">[% b.branchname | html %]</option> >- [% END %] >- </select> >- </span> >- >- </caption> > > <thead> > <tr> >@@ -241,8 +227,10 @@ > 'bSort': true, > 'aaSortingFixed': [[ 1, 'asc' ]], > 'bPaginate': false, >- "bAutoWidth": false >+ "bAutoWidth": false, >+ "dom": 'ifB<"budget_toolbar">' > }); >+ $(".budget_toolbar").html('<div class="toolbar"><span class="actions"><a href="#" id="expand_all">Expand all</a> | <a href="#" id="collapse_all">Collapse all</a> | <a href="#" id="hide_inactive">Hide inactive budgets</a> | <a href="#" id="show_inactive">Show inactive budgets</a> | <select id="library-filter"><option value="">Filter by library</option>[% FOREACH b IN Branches.all %]<option value="[% b.branchname | html %]">[% b.branchname | html %]</option>[% END %]</select></span></div>'); > > $(oTable).treetable({ > expandable: true >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >index 5eeb57766b..1c976565b4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >@@ -52,14 +52,6 @@ > [% IF budgets %] > > <table id="budgeth" class="group"> >- [% UNLESS budget_period_id %] >- <caption> >- <span class="actions"><a href="#" id="expand_all">Expand all</a> >- | <a href="#" id="collapse_all">Collapse all</a> >- | <a href="#" id="hide_inactive">Hide inactive budgets</a> >- | <a href="#" id="show_inactive">Show inactive budgets</a></span> >- </caption> >- [% END %] > <thead> > <tr> > <th>Active</th> >@@ -653,8 +645,12 @@ > 'bSort': true, > 'aaSortingFixed': [[ 1, 'asc' ]], > 'bPaginate': false, >- "bAutoWidth": false >+ "bAutoWidth": false, >+ "dom": 'ifB<"budget_toolbar">' > }); >+ [% UNLESS budget_period_id %] >+ $(".budget_toolbar").html('<br clear="all"/><div class="toolbar"><span class="actions"><a href="#" id="expand_all">Expand all</a> | <a href="#" id="collapse_all">Collapse all</a> | <a href="#" id="hide_inactive">Hide inactive budgets</a> | <a href="#" id="show_inactive">Show inactive budgets</a></span></div>'); >+ [% END %] > > $(oTable).treetable({ > expandable: true >-- >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 27653
:
116495
|
116530
|
116531
|
116576
|
116611
|
116614
|
116615
|
116690
|
116841
|
116864