Updating AjaxHelper::submit() with FormHelper reference

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4593 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-03-05 17:53:43 +00:00
parent 3b0a6bf5d4
commit 272efd4c07

View file

@ -345,7 +345,7 @@ class AjaxHelper extends AppHelper {
}
$htmlOptions['onclick'] = "return false;";
return $this->Html->submit($title, $htmlOptions)
return $this->Form->submit($title, $htmlOptions)
. $this->Javascript->event('"' . $htmlOptions['id'] . '"', 'click', $this->remoteFunction($options));
}