Skip to:
Content

BuddyPress.org

Ticket #4696: trac4696_bp_accepted_button_should_be_text.patch

File trac4696_bp_accepted_button_should_be_text.patch, 777 bytes (added by magnus78, 12 years ago)

proposed fix

  • bp-themes/bp-default/_inc/global.js

     
    873874                                button.fadeOut( 100, function() {
    874875                                        if ( jq(this).hasClass('accept') ) {
    875876                                                action_div.children('a.reject').hide();
    876                                                 jq(this).html( BP_DTheme.accepted ).fadeIn(50);
    877                                                 jq(this).addClass('accepted');
     877                                                jq(this).html( BP_DTheme.accepted ).contents().unwrap();
    878878                                        } else {
    879879                                                action_div.children('a.accept').hide();
    880                                                 jq(this).html( BP_DTheme.rejected ).fadeIn(50);
    881                                                 jq(this).addClass('rejected');
     880                                                jq(this).html( BP_DTheme.rejected ).contents().unwrap();
    882881                                        }
    883882                                });
    884883                        }