mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
3ed7c6e931
commit
607158de45
1 changed files with 0 additions and 18 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue