$.fn.dataTableExt.oJUIClasses.sStripeOdd/Even broken

$.fn.dataTableExt.oJUIClasses.sStripeOdd/Even broken

joeltinejoeltine Posts: 4Questions: 0Answers: 0
edited February 2012 in Bug reports
Setting either of these "sStripeOdd" or "sStripeEven" no longer overwrites the default "odd/even" classes for each row. Here is a fiddle:

http://jsfiddle.net/M3UNq/1/

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Good one - thanks for flagging this up. The trouble here is that there are now two passible methods to set the default for the stripe classes - as you have done or using the asStripeClasses property in the defaults. Either of these can then be overruled with the asStripeClasses initialisation option.

    I must confess I'm not sure what the fix should be here - I'll need to think about it! The thing is - which default should be used the initialisation objects, or the classes?! I clean missed that when I was putting this part together :-(.

    The work around for now is to use asStripeClasses, but I'll try to think of a better option that will restore backwards compatibility.

    Allan
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Okay got it - I've changed the default for asStripeClasses to be null, so now if null is found there than the classes from the class objects are used, but if a default is applied or an init option is given, then they will be used.

    I've just committed this fix and it is available in the 1.9.1.dev nightly version on the downloads page.

    Thanks again for flagging this up.

    Allan
  • joeltinejoeltine Posts: 4Questions: 0Answers: 0
    Excellent. Thanks for the quick fix Allan.
This discussion has been closed.