Bugzilla – Attachment 49476 Details for
Bug 16120
Making action on patron search a button
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16120: Add the actions class to all actions td
Bug-16120-Add-the-actions-class-to-all-actions-td.patch (text/plain), 4.26 KB, created by
Jonathan Druart
on 2016-03-23 22:06:09 UTC
(
hide
)
Description:
Bug 16120: Add the actions class to all actions td
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-03-23 22:06:09 UTC
Size:
4.26 KB
patch
obsolete
>From d17e2a58e9cdb944be77dfcd4ec2e3f6f60b11fb Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 23 Mar 2016 22:03:01 +0000 >Subject: [PATCH] Bug 16120: Add the actions class to all actions td > >We have several others places where a td contains buttons. This patch >fixes the ones in table generated server-side. > >Test plan: >Search for patrons and shelves: the buttons should not wrap > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt | 2 +- > .../intranet-tmpl/prog/en/modules/members/tables/members_results.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt >index 20af6d0..74dc57e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt >@@ -74,7 +74,7 @@ $(document).ready(function(){ > 'aoColumns':[ > [% FOR column IN columns %] > [% IF column == 'action' %] >- { 'mDataProp': 'dt_action', 'bSortable': false } >+ { 'mDataProp': 'dt_action', 'bSortable': false, 'sClass': 'actions' } > [% ELSIF column == 'address' %] > { 'mDataProp': 'dt_address', 'bSortable': false } > [% ELSE %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt >index ad360ec..cfe6f21 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt >@@ -219,7 +219,7 @@ $(document).ready(function() { > { 'mDataProp': 'dt_od_checkouts', 'bSortable': false }, > { 'mDataProp': 'dt_fines', 'bSortable': false }, > { 'mDataProp': 'dt_borrowernotes' }, >- { 'mDataProp': 'dt_action', 'bSortable': false } >+ { 'mDataProp': 'dt_action', 'bSortable': false, 'sClass': 'actions' } > ], > 'fnRowCallback': function(nRow, aData, iDisplayIndex, iDisplayIndexFull) { > /* Center text for 6th column */ >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt >index 6e4018b..b34752a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt >@@ -31,7 +31,7 @@ > "dt_borrowernotes": > "[% data.borrowernotes.replace('\\\\' , '\\\\') |html |html_line_break |collapse %]", > "dt_action": >- "<span style='white-space:nowrap'><a href='/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% data.borrowernumber %]' class='btn btn-mini'><i class='fa fa-pencil'></i> Edit</a></span>", >+ "<a href='/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% data.borrowernumber %]' class='btn btn-mini'><i class='fa fa-pencil'></i> Edit</a>", > "borrowernumber": > "[% data.borrowernumber %]" > }[% UNLESS loop.last %],[% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >index ea66256..48f7b39 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >@@ -76,7 +76,7 @@ $(document).ready(function(){ > { 'mDataProp': 'dt_sortby' }, > { 'mDataProp': 'dt_created_on' }, > { 'mDataProp': 'dt_modification_time' }, >- { 'mDataProp': 'dt_action', 'bSortable': false } >+ { 'mDataProp': 'dt_action', 'bSortable': false, 'sClass': 'actions' } > ], > "aoColumnDefs": [ > { "bVisible": false, "aTargets": [ 'NoVisible' ] } >-- >2.7.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 16120
:
49408
|
49420
|
49429
|
49467
|
49475
|
49476
|
49478
|
49479