From 5f4cdf91ac62dab3419b1d14d029ebd5f076c1cd Mon Sep 17 00:00:00 2001 From: mark_story Date: Mon, 6 Apr 2009 00:57:46 +0000 Subject: [PATCH] Fixing AjaxHelper::dragOptions to match scriptaculous docs. git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8136 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/view/helpers/ajax.php | 2 +- cake/tests/cases/libs/view/helpers/ajax.test.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/view/helpers/ajax.php b/cake/libs/view/helpers/ajax.php index f1621d229..97d5c9580 100644 --- a/cake/libs/view/helpers/ajax.php +++ b/cake/libs/view/helpers/ajax.php @@ -82,7 +82,7 @@ class AjaxHelper extends AppHelper { var $dragOptions = array( 'handle', 'revert', 'snap', 'zindex', 'constraint', 'change', 'ghosting', 'starteffect', 'reverteffect', 'endeffect', 'scroll', 'scrollSensitivity', - 'onStart', 'onDrag', 'onDropped' , 'onEnd' + 'onStart', 'onDrag', 'onEnd' ); /** * Options for droppable. diff --git a/cake/tests/cases/libs/view/helpers/ajax.test.php b/cake/tests/cases/libs/view/helpers/ajax.test.php index ae024f455..28405e628 100644 --- a/cake/tests/cases/libs/view/helpers/ajax.test.php +++ b/cake/tests/cases/libs/view/helpers/ajax.test.php @@ -303,7 +303,7 @@ class AjaxHelperTest extends CakeTestCase { $result = $this->Ajax->drag('id', array('onDrag' => 'doDrag', 'onDropped' => 'doDrop')); $this->assertPattern('/onDrag:doDrag/', $result); - $this->assertPattern('/onDropped:doDrop/', $result); + $this->assertPattern('/onEnd:doEnd/', $result); } /** * testDroppable method