[buddypress-trac] [BuddyPress Trac] #5822: Extending ajax parameters
buddypress-trac
noreply at wordpress.org
Tue Aug 19 14:04:57 UTC 2014
#5822: Extending ajax parameters
---------------------------+-----------------------------
Reporter: cyrilbatillat | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Activity | Version: 2.0
Severity: normal | Keywords:
---------------------------+-----------------------------
Hi,
This ticket follows [http://buddypress.org/support/topic/extending-ajax-
parameters/ this BuddyPress thread].
This is about extending the data passed on ajax calls on activity comments
form. Currently, the ajax data is hard-coded as such :
{{{
var ajaxdata = {
action: 'new_activity_comment',
'cookie': bp_get_cookies(),
'_wpnonce_new_activity_comment':
jq("#_wpnonce_new_activity_comment").val(),
'comment_id': comment_id,
'form_id': form_id[2],
'content': content.val()
};
}}}
The purpose here is being able to apply filters on this data, to declare
additionnal data on ajax calls. I'm not sure WordPress offers the
possibility to apply filter directly in JS, although I stumbled on
[https://core.trac.wordpress.org/ticket/21170 this trac ticket].
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5822>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list