1
0
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:
Allan Jardine 2015-01-11 16:27:29 +00:00
parent 744155653e
commit d1ea76a958
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
381e161bffbd1ae65e07d0a6eaca08b5237f09b2
44cd419e587866a5bd5ade590dde586db239157a

View File

@ -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( {
&quot;createdRow&quot;: function ( row, data, index ) {
if ( data[5].replace(/[\$,]/g, '') * 1 &gt; 4000 ) {
if ( data[5].replace(/[\$,]/g, '') * 1 &gt; 150000 ) {
$('td', row).eq(5).addClass('highlight');
}
}