Ticket #6122: 6122-02.patch
File 6122-02.patch, 1.8 KB (added by , 10 years ago) |
---|
-
src/bp-templates/bp-legacy/js/buddypress.js
33 33 var $member_nicename = $whats_new.val(); 34 34 35 35 jq('#whats-new-options').animate({ 36 height:'40px'36 minHeight:'40px' 37 37 }); 38 38 39 39 $whats_new.animate({ 40 height:'50px'40 minHeight:'50px' 41 41 }); 42 42 43 43 jq.scrollTo( $whats_new, 500, { … … 50 50 51 51 /**** Activity Posting ********************************************************/ 52 52 53 // Set a class of 'hide' on initial #whats-new-options element 54 jq('#whats-new-options').addClass('whats-new-hide'); 55 53 56 /* Textarea focus */ 54 57 $whats_new.focus( function(){ 58 59 // Add a class for focussed state of textarea 60 $whats_new.addClass('whats-new-has-focus'); 61 55 62 jq('#whats-new-options').animate({ 56 height:'40px'63 minHeight: '40px' 57 64 }); 58 65 jq('#whats-new-form textarea').animate({ 59 height:'50px'66 minHeight: '50px' 60 67 }); 61 68 jq('#aw-whats-new-submit').prop('disabled', false); 69 jq('#whats-new-options').addClass('whats-new-show').removeClass('whats-new-hide'); 62 70 63 71 var $whats_new_form = jq('form#whats-new-form'), 64 72 $activity_all = jq( '#activity-all' ); … … 87 95 if (!this.value.match(/\S+/)) { 88 96 this.value = ''; 89 97 jq('#whats-new-options').animate({ 90 height:'40px'98 minHeight: '' 91 99 }); 92 100 jq('form#whats-new-form textarea').animate({ 93 height:'20px'101 minHeight: '20px' 94 102 }); 103 $whats_new.removeClass('whats-new-has-focus'); 95 104 jq('#aw-whats-new-submit').prop('disabled', true); 105 jq('#whats-new-options').removeClass('whats-new-show').addClass('whats-new-hide'); 96 106 } 97 107 } 98 108 });