From 55231d4a5aac619100e816d81e303fdb03245112 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 23 Mar 2016 22:03:01 +0000 Subject: [PATCH] [PASSED QA] 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 --- 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": - " 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 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' ] } -- 1.9.1