Permalink
Browse files

Updating slide effects for jquery engine.

  • Loading branch information...
1 parent ba15d95 commit e2918c6f5ea42a1b43bd75c2f2f00a1f3db9bbe3 @markstory markstory committed Mar 29, 2009
Showing with 7 additions and 4 deletions.
  1. +4 −3 cake/libs/view/helpers/jquery_engine.php
  2. +3 −1 cake/libs/view/helpers/prototype_engine.php
View
7 cake/libs/view/helpers/jquery_engine.php
@@ -116,12 +116,13 @@ function effect($name, $options = array()) {
}
$effect = '';
switch ($name) {
+ case 'slideIn':
+ case 'slideOut':
+ $name = ($name == 'slideIn') ? 'slideDown' : 'slideUp';
case 'hide':
case 'show':
- case 'fadeIn':
+ case 'fadeIn':
case 'fadeOut':
- case 'slideIn':
- case 'slideOut':
$effect = ".$name($speed);";
break;
}
View
4 cake/libs/view/helpers/prototype_engine.php
@@ -104,6 +104,8 @@ function each($callback) {
/**
* Trigger an Effect.
*
+ * #### Note: Effects require Scriptaculous to be loaded.
+ *
* @param string $name The name of the effect to trigger.
* @param array $options Array of options for the effect.
* @return string completed string with effect.
@@ -156,7 +158,7 @@ function request($url, $options = array()) {
/**
* Create a sortable element.
*
- * Requires both Ui.Core and Ui.Sortables to be loaded.
+ * #### Note: Requires scriptaculous to be loaded.
*
* @param array $options Array of options for the sortable.
* @return string Completed sortable script.

0 comments on commit e2918c6

Please sign in to comment.