[buddypress-trac] [BuddyPress] #1711: form submit button in global.js
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Wed Jan 27 16:28:01 UTC 2010
#1711: form submit button in global.js
------------------------+---------------------------------------------------
Reporter: grosbouff | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: 1.2.1
Keywords: |
------------------------+---------------------------------------------------
Hi; there is this function in global.js that applies on the search form :
/**** Directory Search
****************************************************/
/* The search form on all directory pages */
j('div.dir-search').click( function(event) {
var target = j(event.target);
if ( target.attr('type') == 'submit' ) {
var css_id = j('div.item-list-tabs
li.selected').attr('id').split( '-' );
var object = css_id[0];
bp_filter_request( object, j.cookie('bp-' + object
+ '-filter'), j.cookie('bp-' + object + '-scope') , 'div.' + object,
target.parent().children('label').children('input').val(), 1 );
}
return false;
});
I think that the "return false" should be inside
if ( target.attr('type') == 'submit' ) {
}
: I would like to add checkboxes to the form and it is not possible as it
is actually...
--
Ticket URL: <http://trac.buddypress.org/ticket/1711>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list