Skip to:
Content

BuddyPress.org

Changeset 4473


Ignore:
Timestamp:
06/07/2011 06:44:08 PM (14 years ago)
Author:
djpaul
Message:

Backport r4349 and r4450 to 1.2 branch, for jQuery 1.6.1.

Location:
branches/1.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-themes/bp-default/_inc/global.js

    r3227 r4473  
    4040        form.children().each( function() {
    4141            if ( jq.nodeName(this, "textarea") || jq.nodeName(this, "input") )
    42                 jq(this).attr( 'disabled', 'disabled' );
     42                jq(this).prop( 'disabled', true );
    4343        });
    4444
     
    4747        /* Remove any errors */
    4848        jq('div.error').remove();
    49         button.attr('disabled','disabled');
     49        button.prop('disabled', true);
    5050
    5151        /* Default POST values */
     
    7373            form.children().each( function() {
    7474                if ( jq.nodeName(this, "textarea") || jq.nodeName(this, "input") )
    75                     jq(this).attr( 'disabled', '' );
     75                    jq(this).prop( 'disabled', false );
    7676            });
    7777
     
    8080                form.prepend( response.substr( 2, response.length ) );
    8181                jq( 'form#' + form.attr('id') + ' div.error').hide().fadeIn( 200 );
    82                 button.attr("disabled", '');
     82                button.prop("disabled", false);
    8383            } else {
    8484                if ( 0 == jq("ul.activity-list").length ) {
     
    9595
    9696                /* Re-enable the submit button after 8 seconds. */
    97                 setTimeout( function() { button.attr("disabled", ''); }, 8000 );
     97                setTimeout( function() { button.prop("disabled", false); }, 8000 );
    9898            }
    9999        });
     
    340340                if ( response[0] + response[1] == '-1' ) {
    341341                    form.append( response.substr( 2, response.length ) ).hide().fadeIn( 200 );
    342                     target.attr("disabled", '');
     342                    target.prop("disabled", false);
    343343                } else {
    344344                    form.fadeOut( 200,
     
    362362
    363363                    /* Re-enable the submit button after 5 seconds. */
    364                     setTimeout( function() { target.attr("disabled", ''); }, 5000 );
     364                    setTimeout( function() { target.prop("disabled", false); }, 5000 );
    365365                }
    366366            });
     
    613613        var friend_id = jq(this).val();
    614614
    615         if ( jq(this).attr('checked') == true )
     615        if ( jq(this).prop('checked') == true )
    616616            var friend_action = 'invite';
    617617        else
     
    665665            jq('.ajax-loader').toggle();
    666666            jq('#friend-list li#uid-' + friend_id).remove();
    667             jq('#invite-list input#f-' + friend_id).attr('checked', false);
     667            jq('#invite-list input#f-' + friend_id).prop('checked', false);
    668668        });
    669669
     
    825825        jq(this).removeClass('over');
    826826    });
    827        
     827
    828828    jq('body#bp-default table.zebra tbody tr:odd').addClass('alt');
    829829
     
    10551055
    10561056    if ( null != jq.cookie('bp-activity-filter') && jq('#activity-filter-select').length )
    1057         jq('#activity-filter-select select option[value=' + jq.cookie('bp-activity-filter') + ']').attr( 'selected', 'selected' );
     1057        jq('#activity-filter-select select option[value="' + jq.cookie('bp-activity-filter') + '"]').prop( 'selected', true );
    10581058
    10591059    /* Activity Tab Set */
     
    10701070    jq(objects).each( function(i) {
    10711071        if ( null != jq.cookie('bp-' + objects[i] + '-filter') && jq('li#' + objects[i] + '-order-select select').length )
    1072             jq('li#' + objects[i] + '-order-select select option[value=' + jq.cookie('bp-' + objects[i] + '-filter') + ']').attr( 'selected', 'selected' );
     1072            jq('li#' + objects[i] + '-order-select select option[value="' + jq.cookie('bp-' + objects[i] + '-filter') + '"]').prop( 'selected', true );
    10731073
    10741074        if ( null != jq.cookie('bp-' + objects[i] + '-scope') && jq('div.' + objects[i]).length ) {
     
    11031103    jq('div.item-list-tabs li#' + object + '-' + scope + ', div.item-list-tabs#object-nav li.current').addClass('selected');
    11041104    jq('div.item-list-tabs li.selected').addClass('loading');
    1105     jq('div.item-list-tabs select option[value=' + filter + ']').attr( 'selected', 'selected' );
     1105    jq('div.item-list-tabs select option[value="' + filter + '"]').prop( 'selected', true );
    11061106
    11071107    if ( 'friends' == object )
     
    11451145    jq('li#activity-' + scope + ', div.item-list-tabs li.current').addClass('selected');
    11461146    jq('div#object-nav.item-list-tabs li.selected, div.activity-type-tabs li.selected').addClass('loading');
    1147     jq('#activity-filter-select select option[value=' + filter + ']').attr( 'selected', 'selected' );
     1147    jq('#activity-filter-select select option[value="' + filter + '"]').prop( 'selected', true );
    11481148
    11491149    /* Reload the activity stream based on the selection */
  • branches/1.2/readme.txt

    r4066 r4473  
    22Contributors: apeatling, johnjamesjacoby, MrMaz, DJPaul, boonebgorges
    33Tags: buddypress, social networking, activity, profiles, messaging, friends, groups, forums, microblogging, twitter, facebook, mingle, social, community, networks, networking, cms
    4 Requires at least: 3.1
     4Requires at least: 3.2
    55Tested up to: 3.1
    66Stable tag: 1.2.8
Note: See TracChangeset for help on using the changeset viewer.