Skip to:
Content

BuddyPress.org

Changeset 3106


Ignore:
Timestamp:
06/28/2010 05:37:50 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Addresses #2465. I hate zebras now.

Location:
branches/1.2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-forums/bp-forums-templatetags.php

    r3083 r3106  
    583583        $class = false;
    584584
    585         if ( $forum_template->current_topic % 2 != 1 )
     585        if ( $forum_template->current_topic % 2 == 1 )
    586586            $class .= 'alt';
    587587
     
    869869        $class = false;
    870870
    871         if ( $topic_template->current_post % 2 != 1 )
     871        if ( $topic_template->current_post % 2 == 1 )
    872872            $class .= 'alt';
    873873
  • branches/1.2/bp-themes/bp-default/_inc/global.js

    r3084 r3106  
    820820    /** Alternate Highlighting ******************************************/
    821821
    822     jq('body#bp-default table tbody tr, div.message-box').each( function(i) {
    823         if ( i % 2 != 1 )
     822    jq('div.message-box').each( function(i) {
     823        if ( i % 2 == 1 )
    824824            jq(this).addClass('alt');
    825825    });
     826
     827    jq('body#bp-default table tbody tr:nth-child(even)').addClass('alt');
    826828
    827829    /** Private Messaging ******************************************/
  • branches/1.2/bp-xprofile/bp-xprofile-templatetags.php

    r2831 r3106  
    188188        $css_classes[] = 'field_' . sanitize_title( $profile_template->field->name );
    189189
    190         if ( $profile_template->current_field % 2 )
     190        if ( $profile_template->current_field % 2 == 1 )
    191191            $css_classes[] = 'alt';
    192192
Note: See TracChangeset for help on using the changeset viewer.