Changeset 4473
- Timestamp:
- 06/07/2011 06:44:08 PM (14 years ago)
- Location:
- branches/1.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-themes/bp-default/_inc/global.js
r3227 r4473 40 40 form.children().each( function() { 41 41 if ( jq.nodeName(this, "textarea") || jq.nodeName(this, "input") ) 42 jq(this). attr( 'disabled', 'disabled');42 jq(this).prop( 'disabled', true ); 43 43 }); 44 44 … … 47 47 /* Remove any errors */ 48 48 jq('div.error').remove(); 49 button. attr('disabled','disabled');49 button.prop('disabled', true); 50 50 51 51 /* Default POST values */ … … 73 73 form.children().each( function() { 74 74 if ( jq.nodeName(this, "textarea") || jq.nodeName(this, "input") ) 75 jq(this). attr( 'disabled', '');75 jq(this).prop( 'disabled', false ); 76 76 }); 77 77 … … 80 80 form.prepend( response.substr( 2, response.length ) ); 81 81 jq( 'form#' + form.attr('id') + ' div.error').hide().fadeIn( 200 ); 82 button. attr("disabled", '');82 button.prop("disabled", false); 83 83 } else { 84 84 if ( 0 == jq("ul.activity-list").length ) { … … 95 95 96 96 /* Re-enable the submit button after 8 seconds. */ 97 setTimeout( function() { button. attr("disabled", ''); }, 8000 );97 setTimeout( function() { button.prop("disabled", false); }, 8000 ); 98 98 } 99 99 }); … … 340 340 if ( response[0] + response[1] == '-1' ) { 341 341 form.append( response.substr( 2, response.length ) ).hide().fadeIn( 200 ); 342 target. attr("disabled", '');342 target.prop("disabled", false); 343 343 } else { 344 344 form.fadeOut( 200, … … 362 362 363 363 /* Re-enable the submit button after 5 seconds. */ 364 setTimeout( function() { target. attr("disabled", ''); }, 5000 );364 setTimeout( function() { target.prop("disabled", false); }, 5000 ); 365 365 } 366 366 }); … … 613 613 var friend_id = jq(this).val(); 614 614 615 if ( jq(this). attr('checked') == true )615 if ( jq(this).prop('checked') == true ) 616 616 var friend_action = 'invite'; 617 617 else … … 665 665 jq('.ajax-loader').toggle(); 666 666 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); 668 668 }); 669 669 … … 825 825 jq(this).removeClass('over'); 826 826 }); 827 827 828 828 jq('body#bp-default table.zebra tbody tr:odd').addClass('alt'); 829 829 … … 1055 1055 1056 1056 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 ); 1058 1058 1059 1059 /* Activity Tab Set */ … … 1070 1070 jq(objects).each( function(i) { 1071 1071 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 ); 1073 1073 1074 1074 if ( null != jq.cookie('bp-' + objects[i] + '-scope') && jq('div.' + objects[i]).length ) { … … 1103 1103 jq('div.item-list-tabs li#' + object + '-' + scope + ', div.item-list-tabs#object-nav li.current').addClass('selected'); 1104 1104 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 ); 1106 1106 1107 1107 if ( 'friends' == object ) … … 1145 1145 jq('li#activity-' + scope + ', div.item-list-tabs li.current').addClass('selected'); 1146 1146 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 ); 1148 1148 1149 1149 /* Reload the activity stream based on the selection */ -
branches/1.2/readme.txt
r4066 r4473 2 2 Contributors: apeatling, johnjamesjacoby, MrMaz, DJPaul, boonebgorges 3 3 Tags: buddypress, social networking, activity, profiles, messaging, friends, groups, forums, microblogging, twitter, facebook, mingle, social, community, networks, networking, cms 4 Requires at least: 3. 14 Requires at least: 3.2 5 5 Tested up to: 3.1 6 6 Stable tag: 1.2.8
Note: See TracChangeset
for help on using the changeset viewer.