From bb33d52cc668afe88be80d271b890fed7cb7f354 Mon Sep 17 00:00:00 2001 From: Cameri Date: Thu, 17 Oct 2013 18:26:39 -0400 Subject: [PATCH] Added 'xhr' as callback in JqueryEngineHelper::request() so it formats as Javascript. --- lib/Cake/View/Helper/JqueryEngineHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/View/Helper/JqueryEngineHelper.php b/lib/Cake/View/Helper/JqueryEngineHelper.php index fe5bc77e5..bc3cd92c7 100644 --- a/lib/Cake/View/Helper/JqueryEngineHelper.php +++ b/lib/Cake/View/Helper/JqueryEngineHelper.php @@ -271,7 +271,7 @@ class JqueryEngineHelper extends JsBaseEngineHelper { $options['success'] = $success; unset($options['update']); } - $callbacks = array('success', 'error', 'beforeSend', 'complete'); + $callbacks = array('success', 'error', 'beforeSend', 'complete', 'xhr'); if (!empty($options['dataExpression'])) { $callbacks[] = 'data'; unset($options['dataExpression']);