mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Update datatables for ajax-datatables-rails 1
Resolves: - inability to filter, order, or paginate datatables - exception AjaxDatatablesRails::Error::InvalidSearchColumn Continues: -81853d1ef9-83636afee0
This commit is contained in:
parent
edec5a98be
commit
2a93d09d22
6 changed files with 10 additions and 9 deletions
|
|
@ -71,13 +71,13 @@
|
|||
"searchable": false
|
||||
},
|
||||
{
|
||||
"data": null,
|
||||
"data": "actions",
|
||||
"className": "actions",
|
||||
"searchable": false,
|
||||
"sortable": false,
|
||||
"render": function (data, type, row, meta) {
|
||||
return '<div class="btn-group">'+
|
||||
'<a class="btn-primary" href="'+data.edit_url+'">Edit</a>'+
|
||||
'<a class="btn-primary" href="'+row.edit_url+'">Edit</a>'+
|
||||
'</div>';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,13 +61,13 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"data": null,
|
||||
"data": "actions",
|
||||
"className": "actions",
|
||||
"sortable": false,
|
||||
"render": function (data, type, row, meta) {
|
||||
return '<div class="btn-group">'+
|
||||
'<a class="btn-info" href="'+data.view_url+'">View</a>'+
|
||||
'<a class="btn-primary" href="'+data.edit_url+'">Edit</a>'+
|
||||
'<a class="btn-info" href="'+row.view_url+'">View</a>'+
|
||||
'<a class="btn-primary" href="'+row.edit_url+'">Edit</a>'+
|
||||
'</div>';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue