mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-19 12:52:11 +01:00
Fix example: dt-init rowCallback
example was highlighting all rows, rather than just a select few due to the logic condition being a bit loose!
This commit is contained in:
parent
744155653e
commit
d1ea76a958
@ -1 +1 @@
|
||||
381e161bffbd1ae65e07d0a6eaca08b5237f09b2
|
||||
44cd419e587866a5bd5ade590dde586db239157a
|
||||
|
@ -27,7 +27,7 @@
|
||||
$(document).ready(function() {
|
||||
$('#example').dataTable( {
|
||||
"createdRow": function ( row, data, index ) {
|
||||
if ( data[5].replace(/[\$,]/g, '') * 1 > 4000 ) {
|
||||
if ( data[5].replace(/[\$,]/g, '') * 1 > 150000 ) {
|
||||
$('td', row).eq(5).addClass('highlight');
|
||||
}
|
||||
}
|
||||
@ -549,7 +549,7 @@ $(document).ready(function() {
|
||||
<p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() {
|
||||
$('#example').dataTable( {
|
||||
"createdRow": function ( row, data, index ) {
|
||||
if ( data[5].replace(/[\$,]/g, '') * 1 > 4000 ) {
|
||||
if ( data[5].replace(/[\$,]/g, '') * 1 > 150000 ) {
|
||||
$('td', row).eq(5).addClass('highlight');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user