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:
parent
c147c874f7
commit
5f7e9e9d7f
4 changed files with 4 additions and 4 deletions
|
@ -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 %]
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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 %]
|
||||
|
|
|
@ -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' ] }
|
||||
|
|
Loading…
Reference in a new issue