aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual/droppable
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2009-01-22 12:01:20 +0000
committerRichard Worth <rdworth@gmail.com>2009-01-22 12:01:20 +0000
commitf3b91832ce164d1ec80d29b83c92535e4a2f8b0b (patch)
treedc4117c1c28df7212fb2a163b9cf69ff3d745301 /tests/visual/droppable
parent892c52225b9c1f7dcb2ec9ff990a458dbe0002ce (diff)
downloadjquery-ui-f3b91832ce164d1ec80d29b83c92535e4a2f8b0b.tar.gz
jquery-ui-f3b91832ce164d1ec80d29b83c92535e4a2f8b0b.zip
tests: Added extra folder level for each plugin in static and visual test folders
Diffstat (limited to 'tests/visual/droppable')
-rw-r--r--tests/visual/droppable/droppable.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/visual/droppable/droppable.html b/tests/visual/droppable/droppable.html
new file mode 100644
index 000000000..998573271
--- /dev/null
+++ b/tests/visual/droppable/droppable.html
@@ -0,0 +1,40 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <title>Simple Droppable</title>
+ <link rel="stylesheet" href="../all.css" type="text/css">
+ <link rel="stylesheet" href="../../../themes/base/ui.all.css" type="text/css">
+ <script type="text/javascript" src="../../../jquery-1.3.1.js"></script>
+ <script type="text/javascript" src="../../../ui/ui.core.js"></script>
+ <script type="text/javascript" src="../../../ui/ui.draggable.js"></script>
+ <script type="text/javascript" src="../../../ui/ui.droppable.js"></script>
+ <script type="text/javascript">
+ $(function() {
+ $(".draggable").draggable();
+ $("#droppable").droppable({
+ accept: '.draggable',
+ drop: function(ev, ui) {
+ ui.draggable.css({ position: 'relative', top: 0, left: 0 }).clone().appendTo(this);
+ }
+ });
+ });
+ </script>
+</head>
+<body>
+
+<ul class="plugins">
+<li class="plugin">
+ Droppable
+ <div class="draggable">D</div>
+ <div class="draggable">R</div>
+ <div class="draggable">A</div>
+ <div class="draggable">G</div>
+ <div id="droppable">
+ DROP
+ <hr>
+ </div>
+</li>
+</ul>
+
+</body>
+</html>