source: main/trunk/greenstone3/web/interfaces/oran/js/jquery-ui-1.8rc1/tests/visual/droppable/droppable_ticket_4087.html@ 24245

Last change on this file since 24245 was 24245, checked in by sjb48, 13 years ago

Oran code for supporting format changes to document.

  • Property svn:executable set to *
File size: 1.6 KB
Line 
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.4.1.js"></script>
7 <script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
8 <script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
9 <script type="text/javascript" src="../../../ui/jquery.ui.mouse.js"></script>
10 <script type="text/javascript" src="../../../ui/jquery.ui.draggable.js"></script>
11 <script type="text/javascript" src="../../../ui/jquery.ui.droppable.js"></script>
12 <link type="text/css" href="../demos.css" rel="stylesheet" />
13 <style type="text/css">
14 #draggable { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 10px; }
15 #droppable { width: 150px; height: 150px; padding: 0.5em; float: left; margin: 10px; }
16 </style>
17 <script type="text/javascript">
18 $(function() {
19 $("#draggable").draggable();
20 $("#droppable").droppable({
21 drop: function(event, ui) {
22 ui.draggable.remove();
23 }
24 });
25 });
26 </script>
27</head>
28<body>
29
30<h1>
31Ticket <a href="http://dev.jqueryui.com/ticket/4087">#4087</a> - Removing ui.draggable immediately after the drop callback raises an error.
32</h2>
33<h2>
34TEST: Drag 'Drag me' to the div labelled 'Drop here'
35</h2>
36
37<div id="draggable" class="ui-widget-content">
38 <p>Drag me</p>
39</div>
40
41<div id="droppable" class="ui-widget-header">
42 <p>Drop here</p>
43</div>
44
45<h3 style="clear:left;">
46ASSERT: No exception '$(this).data("draggable") is undefined'
47</h3>
48
49</body>
50</html>
Note: See TracBrowser for help on using the repository browser.