From 12cc01eff52ca19e58ab0efb2120a6b718adc7cd Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 14 Mar 2009 13:48:31 -0400 Subject: [PATCH] Fixing + updating doc blocks --- cake/libs/view/helpers/jquery_engine.php | 2 +- cake/libs/view/helpers/js.php | 20 +++++++++++++++++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/cake/libs/view/helpers/jquery_engine.php b/cake/libs/view/helpers/jquery_engine.php index 4cc72c1b0..483751195 100644 --- a/cake/libs/view/helpers/jquery_engine.php +++ b/cake/libs/view/helpers/jquery_engine.php @@ -26,7 +26,7 @@ */ App::import('Helper', 'Js'); -class jqueryEngineHelper extends JsBaseEngineHelper { +class JqueryEngineHelper extends JsBaseEngineHelper { /** * Create javascript selector for a CSS rule * diff --git a/cake/libs/view/helpers/js.php b/cake/libs/view/helpers/js.php index 6b91b48d2..4bbb941fa 100644 --- a/cake/libs/view/helpers/js.php +++ b/cake/libs/view/helpers/js.php @@ -520,7 +520,7 @@ class JsBaseEngineHelper extends AppHelper { /** * Trigger an Effect. * - * #### Supported Effects + * ### Supported Effects * * The following effects are supported by all JsEngines * @@ -532,7 +532,7 @@ class JsBaseEngineHelper extends AppHelper { * - 'slideIn' - Slide an element in. * - 'slideOut' - Slide an element out. * - * #### Options + * ### Options * * - 'speed' - Speed at which the animation should occur. Accepted values are 'slow', 'fast'. Not all effects use * the speed option. @@ -547,9 +547,23 @@ class JsBaseEngineHelper extends AppHelper { /** * Make an XHR request * + * ### Options + * + * - 'method' - The method to make the request with defaults to GET in more libraries + * - 'complete' - Callback to fire on complete. + * - 'request' - Callback to fire on request initialization. + * - 'error' - Callback to fire on request failure. + * - 'async' - Whether or not you want an asynchronous request. + * - 'data' - Additional data to send. + * - 'update' - Dom selector to update with the content of the request. + * - 'type' - Data type for response. 'json' and 'html' are supported. Default is html for most libraries. + * - 'evalScripts' - Whether or not