aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorChi Cheng <cloudream@gmail.com>2008-08-10 09:57:12 +0000
committerChi Cheng <cloudream@gmail.com>2008-08-10 09:57:12 +0000
commitf84585a7fe3df915492dec27be891e40c0a0e7d6 (patch)
tree354ccfdc85972a71dfe0241267966740094631d5 /demos
parenteec36c91aa4290bd197922794fa5585b09dfc4a2 (diff)
downloadjquery-ui-f84585a7fe3df915492dec27be891e40c0a0e7d6.tar.gz
jquery-ui-f84585a7fe3df915492dec27be891e40c0a0e7d6.zip
functional demos: draggable : dragPrevention -> cancel
Diffstat (limited to 'demos')
-rw-r--r--demos/functional/templates/ui.draggable.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/functional/templates/ui.draggable.html b/demos/functional/templates/ui.draggable.html
index 94aca5774..703455e5d 100644
--- a/demos/functional/templates/ui.draggable.html
+++ b/demos/functional/templates/ui.draggable.html
@@ -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" });' }
]
}