how would I disable / remove the animate from the activity textarea?
-
Okay, specific question… In the global.js for BuddyPress we find…
`/* Textarea focus */
jq(‘#whats-new’).focus( function(){
jq(“#whats-new-options”).animate({
height:’40px’
});
jq(“form#whats-new-form textarea”).animate({
height:’50px’
});
jq(“#aw-whats-new-submit”).prop(“disabled”, false);var $whats_new_form = jq(“form#whats-new-form”);
if ( $whats_new_form.hasClass(“submitted”) ) {
$whats_new_form.removeClass(“submitted”);
}
});What I’m concerned with is the animations on the textarea. I wish to disable them via another jQuery script or some other method ( so as not to alter the BuddyPress files themselves ). I’ve tried duplicating the code in my site’s global.js and modifying them with .stop(), .stop(true), .clearQueue(), and the like with no resolve. Is there a way to accomplish this? I don’t want the effect at all nor the resize. Leave my textarea alone! Also, I don’t want to set min-height as it disables the script I have running to autosize the textarea when it’s being used.
- The topic ‘how would I disable / remove the animate from the activity textarea?’ is closed to new replies.