fnOpen() API doc example incorrect

fnOpen() API doc example incorrect

jnm99jnm99 Posts: 10Questions: 0Answers: 0
edited June 2010 in Bug reports
the example code given in the fnOpen() and fnClose() API documentation does not work.
'this' in the inner click() callback is the newly opened row not the parent on which the original open happened.
The documentation there is consistent with the example code, saying that the info_row is the one closed, but
the plugin source code suggests that close should be called on the same object as open was called on.
So outer this should be saved and passed to fnClose().
This is how I got that example working.

Also
'string - class to give the new row'
whereas the current code assigns a new class to the TD within the TR.
Maybe the example was written for an older version of the plugin that behaved differently and not updated since?

thanks

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Hi jnm99,

    Very good points! Thank you for posting this. I've updated the code example to get the usage correct, and also clarify where the class name will be applied.

    Regards,
    Allan
This discussion has been closed.