diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 97bc0687..80fdc036 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -6353,6 +6353,13 @@ /* * Stripes */ + if ( oInit.asStripeClasses === null ) + { + oSettings.asStripeClasses =[ + oSettings.oClasses.sStripeOdd, + oSettings.oClasses.sStripeEven + ]; + } /* Remove row stripe classes if they are already on the table row */ var bStripeRemove = false; @@ -7683,7 +7690,8 @@ * array may be of any length, and DataTables will apply each class * sequentially, looping when required. * @type array - * @default [ 'odd', 'even' ] + * @default null Will take the values determinted by the oClasses.sStripe* + * options * @dtopt Option * * @example @@ -7693,7 +7701,7 @@ * } ); * } ) */ - "asStripeClasses": [ 'odd', 'even' ], + "asStripeClasses": null, /** diff --git a/media/src/core/core.constructor.js b/media/src/core/core.constructor.js index 70fe21c6..4d6e8cb9 100644 --- a/media/src/core/core.constructor.js +++ b/media/src/core/core.constructor.js @@ -230,6 +230,13 @@ else /* * Stripes */ +if ( oInit.asStripeClasses === null ) +{ + oSettings.asStripeClasses =[ + oSettings.oClasses.sStripeOdd, + oSettings.oClasses.sStripeEven + ]; +} /* Remove row stripe classes if they are already on the table row */ var bStripeRemove = false; diff --git a/media/src/model/model.defaults.js b/media/src/model/model.defaults.js index b7cc5a5e..6d6d6f49 100644 --- a/media/src/model/model.defaults.js +++ b/media/src/model/model.defaults.js @@ -209,7 +209,8 @@ DataTable.defaults = { * array may be of any length, and DataTables will apply each class * sequentially, looping when required. * @type array - * @default [ 'odd', 'even' ] + * @default null Will take the values determinted by the oClasses.sStripe* + * options * @dtopt Option * * @example @@ -219,7 +220,7 @@ DataTable.defaults = { * } ); * } ) */ - "asStripeClasses": [ 'odd', 'even' ], + "asStripeClasses": null, /**