Backward compatability note for .fnOpen() - return change

Backward compatability note for .fnOpen() - return change

SJNRSJNR Posts: 2Questions: 0Answers: 0
edited March 2014 in DataTables 1.10
Now returns (or not, depending on how you see it :-) ) "undefined" rather than the "" in 1.9.4

Sorry if it is a duplicate - I tried to see if this was in previous posts...

Why this was important to me :-

the new row is immediatly populated with a Loading Ani while the ajax is off doing its stuff :

I used to use *-

[code]
var newRow = ap_List.fnOpen(nTr,"", 'elem_DataTableNotes');
console.log(newRow) //result : v.1.9.4 ="" ,v1.10="undefined"
var rowData = fn_getNewRowData();
var myTarg = $("td",newRow);
myTarg.html(rowData);
[/code]

don't realy fancy changing it in loads of places :-(

: Again, Thanks for the wonderfull work

(* this is "pseudo code", not as procedural as it looks here...)

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Nice one - thanks for trying out 1.10 and letting me know about this. This is what betas are for :-).

    I've just committed a fix for this and the nightly now behaviour now matches that of 1.9: http://live.datatables.net/mizozin/1/edit

    Allan
  • paragpatilparagpatil Posts: 10Questions: 3Answers: 0

    Hi Allan,

    Where can I get DataTables.js with updated with the above change. I downloaded one recently but seems that is also having same issue.

This discussion has been closed.