Backwards compatibility issue with Datatables 1.10
Backwards compatibility issue with Datatables 1.10
Hello,
I have identified an issue in Datatables 1.10 with respect to backwards compatibility of version 1.9. This has to do with the API function fnOpen().
Here is the line of code:
oTable.fnOpen($tr[0], "<div class=\"loading-gif\"></div>", "row-edit loading");
In version 1.9, this line would add a new <tr> element to the table, containing a single element <td class="row-edit loading">.
In version 1.10, this line is also applying the classes "row-edit loading" to the <tr> element in addition to the <td>. My code is not expecting those classes to be applied to the parent <tr>. This caused some minor headaches for me, and it is a concern for backwards compatibility across my applications.
Regards,
Andrew
Replies
Hi Andrew,
Unfortunately yes, this was changed in 1.10 as a feature request - a number of folks wanted the class to be available on the row element. As such, this is an intended change - sorry.
Allan
Thanks for the quick reply, Allan! That stinks for me, but I'll deal with it.
Keep up the great work.
Andrew