Ticket #6122: 6122-01.patch
File 6122-01.patch, 2.5 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 }); … … 1366 1376 var target = jq(event.target), 1367 1377 object; 1368 1378 1369 if ( target.attr('type') === 'submit' ) {1379 if ( target.attr('type') === 'submit' || target.attr('type') === 'button' ) { 1370 1380 //var css_id = jq('.item-list-tabs li.selected').attr('id').split( '-' ); 1371 1381 object = 'messages'; 1372 1382 1373 bp_filter_request( object, jq.cookie('bp-' + object + '-filter'), jq.cookie('bp-' + object + '-scope') , 'div.' + object, target.parent().children('label').children('input').val(), 1, jq.cookie('bp-' + object + '-extras') );1383 bp_filter_request( object, jq.cookie('bp-' + object + '-filter'), jq.cookie('bp-' + object + '-scope') , 'div.' + object, jq('#messages_search').val(), 1, jq.cookie('bp-' + object + '-extras') ); 1374 1384 1375 1385 return false; 1376 1386 }