Removing deprecated method AjaxHelper::linkToRemote()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3726 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2006-10-20 17:22:23 +00:00
parent 3ed7c6e931
commit 607158de45

View file

@ -201,24 +201,6 @@ class AjaxHelper extends Helper {
return $return;
}
function linkToRemote($title, $options = array(), $html_options = array()) {
//trigger_error('Deprecated function: use AjaxHelper::link', E_USER_WARNING);
$href = '#';
if (!empty($options['fallback']) && isset($options['fallback'])) {
$href = $options['fallback'];
}
if (isset($html_options['id'])) {
return $this->Html->link($title, $href, $html_options) .
$this->Javascript->event("$('{$html_options['id']}')", "click", $this->remoteFunction($options));
} else {
$html_options['onclick'] = $this->remoteFunction($options) . "; return false;";
return $this->Html->link($title, $href, $html_options);
}
}
/**
* Creates JavaScript function for remote AJAX call
*