Changeset 8151
- Timestamp:
- 03/24/2014 07:11:19 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-templates/bp-legacy/js/buddypress.js
r8150 r8151 53 53 }); 54 54 jq("#aw-whats-new-submit").prop("disabled", false); 55 55 56 56 var $whats_new_form = jq("form#whats-new-form"); 57 57 if ( $whats_new_form.hasClass("submitted") ) { 58 $whats_new_form.removeClass("submitted"); 58 $whats_new_form.removeClass("submitted"); 59 59 } 60 60 … … 377 377 378 378 var just_posted = []; 379 379 380 380 jq('.activity-list li.just-posted').each( function(){ 381 381 just_posted.push( jq(this).attr('id').replace( 'activity-','' ) ); … … 617 617 var new_count = count_span.html() - ( 1 + child_count ); 618 618 count_span.html(new_count); 619 619 620 620 // Change the 'Show all x comments' text 621 621 var show_all_a = comment_li.siblings('.show-all').find('a'); … … 691 691 } 692 692 693 // Canceling an activity comment 693 // Canceling an activity comment 694 694 if ( target.hasClass( 'ac-reply-cancel' ) ) { 695 695 jq(target).closest('.ac-form').slideUp( 200 ); … … 802 802 object = 'group_members'; 803 803 template = 'groups/single/members'; 804 } 804 } 805 805 806 806 if ( 'friends' == object ) … … 840 840 if ( jq('div.dir-search input').length ) 841 841 search_terms = jq('.dir-search input').val(); 842 842 843 843 // The Group Members page has a different selector for 844 844 // its search terms box … … 1032 1032 shouldconfirm = false; 1033 1033 }); 1034 1034 1035 1035 window.onbeforeunload = function(e) { 1036 1036 if ( shouldconfirm ) { … … 1366 1366 }); 1367 1367 }); 1368 1368 1369 1369 /* Bulk delete messages */ 1370 1370 jq( 'body.messages #item-body div.messages' ).on( 'click', '.messages-options-nav a', function() { … … 1372 1372 return; 1373 1373 } 1374 1374 1375 1375 checkboxes_tosend = ''; 1376 1376 checkboxes = jq("#message-threads tr td input[type='checkbox']"); … … 1388 1388 return false; 1389 1389 } 1390 1390 1391 1391 jq.post( ajaxurl, { 1392 1392 action: 'messages_delete', … … 1401 1401 if( jq(this).is(':checked') ) { 1402 1402 // We need to uncheck because message is only hidden 1403 // Otherwise, AJAX will be fired again with same data 1403 // Otherwise, AJAX will be fired again with same data 1404 1404 jq(this).attr( 'checked', false ); 1405 1405 jq(this).parent().parent().fadeOut(150); … … 1471 1471 }); 1472 1472 }); 1473 1473 1474 1474 /* if js is enabled then replace the no-js class by a js one */ 1475 1475 if( jq('body').hasClass('no-js') ) … … 1617 1617 jq(this).fadeIn(100); 1618 1618 }); 1619 }); 1619 }); 1620 1620 1621 1621 } else { … … 1710 1710 jq(this).toggle(); 1711 1711 1712 if ( !i ) 1712 if ( !i ) 1713 1713 jq(this).before( '<li class="show-all"><a href="#' + parent_li.attr('id') + '/show-all/" title="' + BP_DTheme.show_all_comments + '">' + BP_DTheme.show_x_comments.replace( '%d', comment_count ) + '</a></li>' ); 1714 1714 }
Note: See TracChangeset
for help on using the changeset viewer.