Documentation error / type
Documentation error / type
mdiessner
Posts: 34Questions: 0Answers: 0
There is a type on this page / documentation:
http://datatables.net/extras/tabletools/initialisation
[quote]
"fnRowSelected": function ( node ) {
alert( 'The row with ID '+node.id'+ was selected' );
}
[/quote]
should be
[code]
"fnRowSelected": function ( node ) {
alert( 'The row with ID '+node.id+' was selected' );
}
[/code]
The mistake is in the alert statement where the last string is incorrectly concatenated.
Inexperienced users will copy and paste and wonder why it's not working.
http://datatables.net/extras/tabletools/initialisation
[quote]
"fnRowSelected": function ( node ) {
alert( 'The row with ID '+node.id'+ was selected' );
}
[/quote]
should be
[code]
"fnRowSelected": function ( node ) {
alert( 'The row with ID '+node.id+' was selected' );
}
[/code]
The mistake is in the alert statement where the last string is incorrectly concatenated.
Inexperienced users will copy and paste and wonder why it's not working.
This discussion has been closed.
Replies
Allan
Found another small typo:
http://datatables.net/plug-ins/sorting
In the H3:
How to use DataTables plug-in sorting functions functions (type based)
word "functions" is repeated twice. Should read:
How to use DataTables plug-in sorting functions (type based)
Hope you don't mind me telling you.
Cheers
Martin
I can't fix this one immediately as I'm traveling at the moment, but I will do so when I return.
Allan