Changeset 3812
- Timestamp:
- 01/22/2011 10:42:45 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/_inc/global.js
r3771 r3812 158 158 159 159 /* Favoriting activity stream items */ 160 if ( target. attr('class') == 'fav' || target.attr('class') == 'unfav') {160 if ( target.hasClass('fav') || target.hasClass('unfav') ) { 161 161 var type = target.attr('class') 162 162 var parent = target.parent().parent().parent(); … … 239 239 240 240 /* Load more updates at the end of the page */ 241 if ( target.parent(). attr('class') == 'load-more') {241 if ( target.parent().hasClass('load-more') ) { 242 242 jq("#content li.load-more").addClass('loading'); 243 243 … … 279 279 280 280 /* Comment / comment reply links */ 281 if ( target. attr('class') == 'acomment-reply' || target.parent().attr('class') == 'acomment-reply') {282 if ( target.parent(). attr('class') == 'acomment-reply')281 if ( target.hasClass('acomment-reply') || target.parent().hasClass('acomment-reply') ) { 282 if ( target.parent().hasClass('acomment-reply') ) 283 283 target = target.parent(); 284 284 … … 308 308 } 309 309 310 if ( form.parent(). attr( 'class' ) == 'activity-comments')310 if ( form.parent().hasClass( 'activity-comments' ) ) 311 311 form.addClass('root'); 312 312 … … 324 324 var form_id = form.attr('id').split('-'); 325 325 326 if ( 'activity-comments' !== form_parent.attr('class') ) {326 if ( !form_parent.hasClass('activity-comments') ) { 327 327 var tmp_id = form_parent.attr('id').split('-'); 328 328 var comment_id = tmp_id[1]; … … 356 356 function() { 357 357 if ( 0 == form.parent().children('ul').length ) { 358 if ( form.parent(). attr('class') == 'activity-comments')358 if ( form.parent().hasClass('activity-comments') ) 359 359 form.parent().prepend('<ul></ul>'); 360 360 else … … 462 462 if ( keyCode == 27 ) { 463 463 if (element.tagName == 'TEXTAREA') { 464 if ( jq(element). attr('class') == 'ac-input')464 if ( jq(element).hasClass('ac-input') ) 465 465 jq(element).parent().parent().parent().slideUp( 200 ); 466 466 }
Note: See TracChangeset
for help on using the changeset viewer.