tests visual draggable - moved handle test to its own file. default visual tests should have no options.

This commit is contained in:
Richard Worth
2008-06-26 11:35:28 +00:00
parent 6a6829db7f
commit f7dc618ede
2 changed files with 29 additions and 4 deletions

View File

@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Simple Draggable</title>
<link rel="stylesheet" href="all.css" type="text/css" media="screen">
<script type="text/javascript" src="../../jquery-1.2.6.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">
$(function() {
$("#draggable").draggable({ handle: "span" });
});
</script>
</head>
<body>
<ul class="plugins">
<li>
Draggable
<div id="draggable">
<span>Handle</span>
</div>
</li>
</ul>
</body>
</html>

View File

@@ -8,7 +8,7 @@
<script type="text/javascript" src="../../ui/ui.draggable.js"></script>
<script type="text/javascript">
$(function() {
$("#draggable").draggable({ handle: "span", drag: function() { console.log(1); } });
$("#draggable").draggable();
});
</script>
</head>
@@ -17,11 +17,9 @@
<ul class="plugins">
<li>
Draggable
<div id="draggable"><span>Handle</span></div>
<div style="height: 1000px;"></div>
<div id="draggable"></div>
</li>
</ul>
<div style="height: 1000px;"></div>
</body>
</html>