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
This commit is contained in:
mark_story 2009-04-06 00:57:46 +00:00
parent 5c4f838f5a
commit 5f4cdf91ac
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -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