Skip to:
Content

BuddyPress.org

Changeset 2354


Ignore:
Timestamp:
01/19/2010 11:57:47 AM (16 years ago)
Author:
apeatling
Message:

Fixes #1556 - missing comment delete ajax loader.

Location:
trunk/bp-themes/bp-default/_inc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/_inc/ajax.php

    r2346 r2354  
    131131            <?php echo bp_core_get_userlink( $bp->loggedin_user->id ) ?> &middot; <?php echo bp_core_time_since( time() ) ?> &middot;
    132132            <a class="acomment-reply" href="#acomment-<?php echo $comment_id ?>" id="acomment-reply-<?php echo attribute_escape( $_POST['form_id'] ) ?>"><?php _e( 'Reply', 'buddypress' ) ?></a>
    133             <?php if ( is_site_admin() || $bp->loggedin_user->id == $comment->user_id ) : ?>
    134                  &middot; <a href="<?php echo wp_nonce_url( $bp->activity->id . '/delete/?cid=' . $comment_id, 'delete_activity_comment' ) ?>" class="delete acomment-delete"><?php _e( 'Delete', 'buddypress' ) ?></a>
    135             <?php endif; ?>
     133             &middot; <a href="<?php echo wp_nonce_url( $bp->root_domain . '/' . $bp->activity->slug . '/delete/' . $comment_id, 'bp_activity_delete_link' ) ?>" class="item-button delete-activity confirm"><?php _e( 'Delete', 'buddypress' ) ?></a>
    136134        </div>
    137135
  • trunk/bp-themes/bp-default/_inc/css/default.css

    r2353 r2354  
    5151    float: left;
    5252    border: 2px solid #eee;
    53 }
    54 
    55 .ajax-loader {
    56     background: url( ../images/ajax-loader.gif ) center left no-repeat !important;
    57     padding: 8px;
    58     display: none;
    5953}
    6054
     
    610604}
    611605
     606/* > AJAX Loaders
     607-------------------------------------------------------------- */
     608
     609.ajax-loader {
     610    background: url( ../images/ajax-loader.gif ) center left no-repeat !important;
     611    padding: 8px;
     612    display: none;
     613}
     614
     615a.loading {
     616    background-image: url( ../images/ajax-loader.gif );
     617    background-position: 95% 50%;
     618    padding-right: 25px;
     619    background-repeat: no-repeat;
     620}
     621
    612622/* > Buttons
    613623-------------------------------------------------------------- */
     
    11721182    margin-right: 3px;
    11731183}
    1174     .activity-list div.activity-meta a.loading {
    1175         background-image: url( ../images/ajax-loader.gif );
    1176         background-position: 95% 50%;
    1177         padding-right: 25px;
    1178         background-repeat: no-repeat;
    1179     }
    1180 
    11811184    .activity-list div.activity-meta a.acomment-reply {
    11821185        background: #FFF9DB;
  • trunk/bp-themes/bp-default/_inc/global.js

    r2346 r2354  
    389389                comment_id = comment_id[1].split('&');
    390390                comment_id = comment_id[0];
     391
     392            target.addClass('loading');
    391393
    392394            /* Remove any error messages */
Note: See TracChangeset for help on using the changeset viewer.