From 5f7e9e9d7ff33b9fd8ad68c556e9658eb9c52ba7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart 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 Signed-off-by: Katrin Fischer Signed-off-by: Brendan A Gallagher --- koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt | 2 +- .../prog/en/modules/members/tables/members_results.tt | 2 +- .../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 20af6d064a..74dc57ee50 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 ad360ecf10..cfe6f21db9 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 6c93808e5a..b97fbacc93 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": - " Edit", + " Edit", "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 ea66256245..48f7b39a6a 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.39.5