Skip to:
Content

BuddyPress.org

Changeset 8151


Ignore:
Timestamp:
03/24/2014 07:11:19 PM (11 years ago)
Author:
boonebgorges
Message:

Pinking shears

File:
1 edited

Legend:

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

    r8150 r8151  
    5353        });
    5454        jq("#aw-whats-new-submit").prop("disabled", false);
    55        
     55
    5656        var $whats_new_form = jq("form#whats-new-form");
    5757        if ( $whats_new_form.hasClass("submitted") ) {
    58             $whats_new_form.removeClass("submitted");   
     58            $whats_new_form.removeClass("submitted");
    5959        }
    6060
     
    377377
    378378            var just_posted = [];
    379            
     379
    380380            jq('.activity-list li.just-posted').each( function(){
    381381                just_posted.push( jq(this).attr('id').replace( 'activity-','' ) );
     
    617617                    var new_count = count_span.html() - ( 1 + child_count );
    618618                    count_span.html(new_count);
    619                    
     619
    620620                    // Change the 'Show all x comments' text
    621621                    var show_all_a = comment_li.siblings('.show-all').find('a');
     
    691691        }
    692692
    693         // Canceling an activity comment   
     693        // Canceling an activity comment
    694694        if ( target.hasClass( 'ac-reply-cancel' ) ) {
    695695            jq(target).closest('.ac-form').slideUp( 200 );
     
    802802            object = 'group_members';
    803803            template = 'groups/single/members';
    804         } 
     804        }
    805805
    806806        if ( 'friends' == object )
     
    840840            if ( jq('div.dir-search input').length )
    841841                search_terms = jq('.dir-search input').val();
    842    
     842
    843843            // The Group Members page has a different selector for
    844844            // its search terms box
     
    10321032            shouldconfirm = false;
    10331033        });
    1034        
     1034
    10351035        window.onbeforeunload = function(e) {
    10361036            if ( shouldconfirm ) {
     
    13661366        });
    13671367    });
    1368    
     1368
    13691369    /* Bulk delete messages */
    13701370    jq( 'body.messages #item-body div.messages' ).on( 'click', '.messages-options-nav a', function() {
     
    13721372            return;
    13731373        }
    1374        
     1374
    13751375        checkboxes_tosend = '';
    13761376        checkboxes = jq("#message-threads tr td input[type='checkbox']");
     
    13881388            return false;
    13891389        }
    1390        
     1390
    13911391        jq.post( ajaxurl, {
    13921392            action: 'messages_delete',
     
    14011401                    if( jq(this).is(':checked') ) {
    14021402                        // 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
    14041404                        jq(this).attr( 'checked', false );
    14051405                        jq(this).parent().parent().fadeOut(150);
     
    14711471        });
    14721472    });
    1473    
     1473
    14741474    /* if js is enabled then replace the no-js class by a js one */
    14751475    if( jq('body').hasClass('no-js') )
     
    16171617                    jq(this).fadeIn(100);
    16181618                });
    1619             }); 
     1619            });
    16201620
    16211621        } else {
     
    17101710                jq(this).toggle();
    17111711
    1712                 if ( !i ) 
     1712                if ( !i )
    17131713                    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>' );
    17141714            }
Note: See TracChangeset for help on using the changeset viewer.