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>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2016-03-23 22:03:01 +00:00 committed by Brendan A Gallagher
parent c147c874f7
commit 5f7e9e9d7f
4 changed files with 4 additions and 4 deletions

View file

@ -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 %]

View file

@ -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 */

View file

@ -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&amp;destination=circ&amp;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&amp;destination=circ&amp;borrowernumber=[% data.borrowernumber %]' class='btn btn-mini'><i class='fa fa-pencil'></i> Edit</a>",
"borrowernumber":
"[% data.borrowernumber %]"
}[% UNLESS loop.last %],[% END %]

View file

@ -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' ] }