Skip to:
Content

BuddyPress.org

Changeset 9528


Ignore:
Timestamp:
02/22/2015 11:18:00 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Strict comparisons in BP Legacy buddypress.js.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/js/buddypress.js

    r9409 r9528  
    17281728        } );
    17291729
    1730         if ( null != jq.cookie('bp-activity-filter') && jq('#activity-filter-select').length ) {
     1730        if ( null !== jq.cookie('bp-activity-filter') && jq('#activity-filter-select').length ) {
    17311731                jq('#activity-filter-select select option[value="' + jq.cookie('bp-activity-filter') + '"]').prop( 'selected', true );
    17321732        }
    17331733
    17341734        /* Activity Tab Set */
    1735         if ( null != jq.cookie('bp-activity-scope') && jq('.activity-type-tabs').length ) {
     1735        if ( null !== jq.cookie('bp-activity-scope') && jq('.activity-type-tabs').length ) {
    17361736                jq('.activity-type-tabs li').each( function() {
    17371737                        jq(this).removeClass('selected');
    … …  
    17441744function bp_init_objects(objects) {
    17451745        jq(objects).each( function(i) {
    1746                 if ( null != jq.cookie('bp-' + objects[i] + '-filter') && jq('#' + objects[i] + '-order-select select').length ) {
     1746                if ( null !== jq.cookie('bp-' + objects[i] + '-filter') && jq('#' + objects[i] + '-order-select select').length ) {
    17471747                        jq('#' + objects[i] + '-order-select select option[value="' + jq.cookie('bp-' + objects[i] + '-filter') + '"]').prop( 'selected', true );
    17481748                }
    17491749
    1750                 if ( null != jq.cookie('bp-' + objects[i] + '-scope') && jq('div.' + objects[i]).length ) {
     1750                if ( null !== jq.cookie('bp-' + objects[i] + '-scope') && jq('div.' + objects[i]).length ) {
    17511751                        jq('.item-list-tabs li').each( function() {
    17521752                                jq(this).removeClass('selected');
    … …  
    18771877
    18781878                /* Update the feed link */
    1879                 if ( null != response.feed_url ) {
     1879                if ( null !== response.feed_url ) {
    18801880                        jq('.directory #subnav li.feed a, .home-page #subnav li.feed a').attr('href', response.feed_url);
    18811881                }
Note: See TracChangeset for help on using the changeset viewer.