File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ <!doctype html>
2+ < html lang ="en ">
3+ < head >
4+ < title > Droppable Visual Test - Droppable ticket 4087</ title >
5+ < link type ="text/css " href ="../../../themes/base/ui.all.css " rel ="stylesheet " />
6+ < script type ="text/javascript " src ="../../../jquery-1.3.1.js "> </ script >
7+ < script type ="text/javascript " src ="../../../ui/ui.core.js "> </ script >
8+ < script type ="text/javascript " src ="../../../ui/ui.draggable.js "> </ script >
9+ < script type ="text/javascript " src ="../../../ui/ui.droppable.js "> </ script >
10+ < link type ="text/css " href ="../demos.css " rel ="stylesheet " />
11+ < style type ="text/css ">
12+ # draggable { width : 100px ; height : 100px ; padding : 0.5em ; float : left; margin : 10px ; }
13+ # droppable { width : 150px ; height : 150px ; padding : 0.5em ; float : left; margin : 10px ; }
14+ </ style >
15+ < script type ="text/javascript ">
16+ $ ( function ( ) {
17+ $ ( "#draggable" ) . draggable ( ) ;
18+ $ ( "#droppable" ) . droppable ( {
19+ drop : function ( event , ui ) {
20+ ui . draggable . remove ( ) ;
21+ }
22+ } ) ;
23+ } ) ;
24+ </ script >
25+ </ head >
26+ < body >
27+
28+ < h1 >
29+ Ticket < a href ="http://dev.jqueryui.com/ticket/4087 "> #4087</ a > - Removing ui.draggable immediately after the drop callback raises an error.
30+ </ h2 >
31+ < h2 >
32+ TEST: Drag 'Drag me' to the div labelled 'Drop here'
33+ </ h2 >
34+
35+ < div id ="draggable " class ="ui-widget-content ">
36+ < p > Drag me</ p >
37+ </ div >
38+
39+ < div id ="droppable " class ="ui-widget-header ">
40+ < p > Drop here</ p >
41+ </ div >
42+
43+ < h3 style ="clear:left; ">
44+ ASSERT: No exception '$(this).data("draggable") is undefined'
45+ </ h3 >
46+
47+ </ body >
48+ </ html >
You can’t perform that action at this time.
0 commit comments