]> source.dussan.org Git - jquery-ui.git/commitdiff
functional demos: draggable : dragPrevention -> cancel
authorChi Cheng <cloudream@gmail.com>
Sun, 10 Aug 2008 09:57:12 +0000 (09:57 +0000)
committerChi Cheng <cloudream@gmail.com>
Sun, 10 Aug 2008 09:57:12 +0000 (09:57 +0000)
demos/functional/templates/ui.draggable.html

index 94aca5774a77b2e7a7c4e783d36384ba1fe932f6..703455e5d271d6a79df9e5f3050ad4affab3c978 100644 (file)
                        {
                                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" });' }
                                ]
                        }