mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Added 'xhr' as callback in JqueryEngineHelper::request() so it formats as Javascript.
This commit is contained in:
parent
1ae470a284
commit
bb33d52cc6
1 changed files with 1 additions and 1 deletions
|
@ -271,7 +271,7 @@ class JqueryEngineHelper extends JsBaseEngineHelper {
|
||||||
$options['success'] = $success;
|
$options['success'] = $success;
|
||||||
unset($options['update']);
|
unset($options['update']);
|
||||||
}
|
}
|
||||||
$callbacks = array('success', 'error', 'beforeSend', 'complete');
|
$callbacks = array('success', 'error', 'beforeSend', 'complete', 'xhr');
|
||||||
if (!empty($options['dataExpression'])) {
|
if (!empty($options['dataExpression'])) {
|
||||||
$callbacks[] = 'data';
|
$callbacks[] = 'data';
|
||||||
unset($options['dataExpression']);
|
unset($options['dataExpression']);
|
||||||
|
|
Loading…
Reference in a new issue