Permalink
Browse files

Merge pull request #345 from hsablonniere/lighthouse-1112-patch

[#1112] CRUD <table> : deprecated HTML attribute
  • Loading branch information...
2 parents 95da4e3 + 2b3b0ed commit 598c46126f11f4240a4378ff8a12db7dcdbdc1ec @pepite pepite committed Sep 30, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −1 modules/crud/app/views/tags/crud/table.html
  2. +1 −0 modules/crud/public/stylesheets/crud.css
@@ -14,7 +14,7 @@
<tr>
%{ if(_fields) { }%
%{ _fields.each() { }%
- <th width="${100 / _fields.size()}%">
+ <th>
%{ if(!_sort || _sort.contains(it)) { }%
<a class="${_caller.orderBy == it ? (_caller.order == 'DESC' ? 'crudSortedDesc' : 'crudSortedAsc') : ''}" href="@{list().remove('page').add('search', params.search).add('orderBy', it).add('order', (_caller.orderBy == it && _caller.order == 'ASC' ? 'DESC' : 'ASC'))}">
&{it}
@@ -91,6 +91,7 @@
border: 1px solid #ddd;
border-top: none;
border-collapse: collapse;
+ table-layout: fixed;
}
#crud #crudContent table thead tr {

0 comments on commit 598c461

Please sign in to comment.