Hello,
ERRATUM==> the bug it true even without ajax/ i don't don't know how to remoed it fomr the queue
I have the following bug:
in a view displaying several nodes with each having the form below.
Whatever submit button i click on it is always the first node that gets printed who its form triggered.
Their is some imprecision on the jquery selectors as I see it.
I don't know much about it but if someone could help.
Thanks in advance,
will
function mymodule_favoritenode($form_state,$node){
// change submit button
$form['submit']= array(
'#type'=>'submit',
'#value' => $node->nid,
);
$form['nid']= array(
'#type'=>'value',
'#value' =>$node->nid,
);
$form['uid']= array(
'#type'=>'value',
'#value'=>$node->uid,
);
$form['#validate'][] = 'mymodule_favoritenode_validate';
$form['#submit'][] = 'mymodule_favoritenode_submit';
$form['#ajaxsubmit'] = TRUE;
return $form;
}