You are not logged in.
Pages: 1
I have used this package:
http://www.workingwith.me.uk/articles/s … le_sorting
in several projects and found it to be quite nice for fast column sorting of tables in html without reloading the page.
I think it should be as simple as:
1. merging the styles in the glpi css class "tab_cadrehov" with the functionality from the standardista css class "sortable" into a new style.
2. enclosing with thead and tbody.
3. naturally remove <a href="..."></a> from all <th>.
e.g.
<table border='0' class='tab_cadrehov_sortable'>
<thead><tr class='tab_bg_2'>
<th></th>
<th>Foo</th>
...
</tr></thead>
<tbody>
<tr class='tab_bg_2'>
<td width='10'><input type='checkbox' name='item[1]' value='1' ></td>
...
</tr>
</tbody>
</table>
currently I am trying to get an example working; but I have to figure out where all the pieces of the html rendering code, first ^_^
non toxique (si utilisé comme prescrit)
Offline
It is not so simple because the sort is only on the current display items.
To have a real sort system you need to sort all items not only the displayed items.
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
ah yes, that is a very good point!!
non toxique (si utilisé comme prescrit)
Offline
Pages: 1