User selectable rows (multiple rows) don't work

User selectable rows (multiple rows) don't work

allservallserv Posts: 8Questions: 0Answers: 0
edited April 2010 in General
Hi everybody,

I've a little issue with the example follow : User selectable rows (multiple rows)

I want just to have the selected rows. I use jQuery to add class on with this code :

[code]
$(document).ready(function() {
$(
function()
{
$("#tabCollab tr").hover(
function()
{
$(this).removeClass('bleuclair blanc').addClass("highlight");
},
function()
{
$(this).removeClass('highlight').addClass(this.rowIndex % 2 == 0 ? "blanc" : "bleuclair");

}
)
}
)


});
[/code]

After i initialize my datatable :
[code]
var oTable;
$(document).ready(function() {

if($('#no_result').length){
}else {



// Mise en place du datatable
oTable = $('#tabCollab').dataTable( {
"sPaginationType": "full_numbers",
/*"bLengthChange":false,*/
"bStateSave":false,
"oLanguage": {
"sLengthMenu": "Affichage _MENU_ enregistrements par page",
"sZeroRecords": "Aucun enregistrement trouv

Replies

  • allservallserv Posts: 8Questions: 0Answers: 0
    Okay, I have found the issue. I have redefine the function alert to have a beautiful display but the function has a bug and don't display all the alert.

    It's seems to work fine now.

    Thanks.
This discussion has been closed.