Skip to:
Content

BuddyPress.org

Changeset 6460


Ignore:
Timestamp:
10/22/2012 10:29:20 AM (12 years ago)
Author:
johnjamesjacoby
Message:

bp-legacy:

  • In activity comments, change 'esc to cancel' to a link to click to cancel.
  • Changes to buddypress.js, buddypress.css, and activity/entry.php.
  • Props jbobich.
  • Fixes #4611.
Location:
trunk/bp-templates/bp-legacy
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-templates/bp-legacy/buddypress/activity/entry.php

    r6284 r6460  
    102102                            <textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input" name="ac_input_<?php bp_activity_id(); ?>"></textarea>
    103103                        </div>
    104                         <input type="submit" name="ac_form_submit" value="<?php _e( 'Post', 'buddypress' ); ?>" /> &nbsp; <?php _e( 'or press esc to cancel.', 'buddypress' ); ?>
     104                        <input type="submit" name="ac_form_submit" value="<?php _e( 'Post', 'buddypress' ); ?>" /> &nbsp; <a href="#" class="ac-reply-cancel"><?php _e( 'Cancel', 'buddypress' ); ?></a>
    105105                        <input type="hidden" name="comment_form_id" value="<?php bp_activity_id(); ?>" />
    106106                    </div>
  • trunk/bp-templates/bp-legacy/css/buddypress.css

    r6459 r6460  
    477477    margin-left: 50px;
    478478    padding-left: 15px;
     479}
     480#buddypress div.activity-comments form div.ac-reply-content a {
     481    text-decoration: none;
    479482}
    480483#buddypress .acomment-options {
  • trunk/bp-templates/bp-legacy/js/buddypress.js

    r6326 r6460  
    602602        }
    603603    });
     604   
     605    /* Link for cancelling comment forms */
     606    jq('.ac-reply-cancel').click( function() {
     607        jq(this).closest('.ac-form').slideUp( 200 );
     608        return false;
     609    });
    604610
    605611    /**** Directory Search ****************************************************/
Note: See TracChangeset for help on using the changeset viewer.