Skip to content

Commit

Permalink
Fixing AjaxHelper::dragOptions to match scriptaculous docs.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8136 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information
markstory committed Apr 6, 2009
1 parent 5c4f838 commit 5f4cdf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cake/libs/view/helpers/ajax.php
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion cake/tests/cases/libs/view/helpers/ajax.test.php
Expand Up @@ -303,7 +303,7 @@ function testDraggable() {

$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
Expand Down

0 comments on commit 5f4cdf9

Please sign in to comment.