source: main/trunk/greenstone3/web/interfaces/oran/js/jquery-ui-1.8rc1/demos/draggable/revert.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.4 KB
Line 
1<!doctype html>
2<html lang="en">
3<head>
4 <title>jQuery UI Draggable - Revert position</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 <link type="text/css" href="../demos.css" rel="stylesheet" />
12 <style type="text/css">
13 #draggable, #draggable2 { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 0 10px 10px 0; }
14 </style>
15 <script type="text/javascript">
16 $(function() {
17 $("#draggable").draggable({ revert: true });
18 $("#draggable2").draggable({ revert: true, helper: 'clone' });
19 });
20 </script>
21</head>
22<body>
23<div class="demo">
24
25<div id="draggable" class="ui-widget-content">
26 <p>Revert the original</p>
27</div>
28
29<div id="draggable2" class="ui-widget-content">
30 <p>Revert the helper</p>
31</div>
32
33</div><!-- End demo -->
34
35<div class="demo-description">
36
37<p>
38Return the draggable (or it's helper) to its original location when dragging stops with the boolean <code>revert</code> option.
39</p>
40
41</div><!-- End demo-description -->
42</body>
43</html>
Note: See TracBrowser for help on using the repository browser.