Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
functional demos: draggable : dragPrevention -> cancel
  • Loading branch information
chicheng committed Aug 10, 2008
1 parent eec36c9 commit f84585a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demos/functional/templates/ui.draggable.html
Expand Up @@ -63,12 +63,12 @@
{
title: 'Drag prevention for pre-defined elements',
desc: 'You can change elements to not drag the parent.',
html: '<div id="draggable-dragPrevention" class="draggable"><a href="#">Drag me</a><br><input type="text" value="select me" style="width: 90px; font-size: 10px;" /></div>',
html: '<div id="draggable-dragPrevention" class="draggable"><a href="#">Drag me</a><br><input type="text" value="select me" style="width: 80px; font-size: 10px;" /></div>',
destroy: '$("#draggable-dragPrevention").draggable("destroy");',

options: [
{ desc: 'Drag using a handle', source: '$("#draggable-dragPrevention").draggable({ dragPrevention: "a,input,textarea" });' },
{ desc: 'Drag using a handle with a helper', source: '$("#draggable-dragPrevention").draggable({ helper: "clone", dragPrevention: "a,input,textarea" });' }
{ desc: 'Drag using a handle', source: '$("#draggable-dragPrevention").draggable({ cancel: "a,input,textarea" });' },
{ desc: 'Drag using a handle with a helper', source: '$("#draggable-dragPrevention").draggable({ helper: "clone", cancel: "a,input,textarea" });' }
]
}

Expand Down

0 comments on commit f84585a

Please sign in to comment.