From 272efd4c07c29fde01bc225e29b789d77e097fc3 Mon Sep 17 00:00:00 2001 From: nate Date: Mon, 5 Mar 2007 17:53:43 +0000 Subject: [PATCH] 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 --- cake/libs/view/helpers/ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/view/helpers/ajax.php b/cake/libs/view/helpers/ajax.php index da39d906b..122429640 100644 --- a/cake/libs/view/helpers/ajax.php +++ b/cake/libs/view/helpers/ajax.php @@ -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)); }