PluginProbe
RSVP and Event Management / 1.1.0
RSVP and Event Management v1.1.0
trunk 0.5.0 0.6.0 0.7.0 0.8.0 0.9.0 0.9.5 1.0.0 1.1.0 1.2.0 1.2.1 1.3.0 1.3.1 1.3.2 1.5.0 1.6.0 1.6.1 1.6.2 1.6.5 1.7.0 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 All 136 releases
rsvp / jquery-ui-1.7.2.custom / development-bundle / demos / draggable / revert.html

revert.html in RSVP and Event Management 1.1.0, at jquery-ui-1.7.2.custom/development-bundle/demos/draggable/revert.html

42 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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.3.2.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 <link type="text/css" href="../demos.css" rel="stylesheet" />
10 <style type="text/css">
11 #draggable, #draggable2 { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 0 10px 10px 0; }
12 </style>
13 <script type="text/javascript">
14 $(function() {
15 $("#draggable").draggable({ revert: true });
16 $("#draggable2").draggable({ revert: true, helper: 'clone' });
17 });
18 </script>
19 </head>
20 <body>
21 <div class="demo">
22
23 <div id="draggable" class="ui-widget-content">
24 <p>Revert the original</p>
25 </div>
26
27 <div id="draggable2" class="ui-widget-content">
28 <p>Revert the helper</p>
29 </div>
30
31 </div><!-- End demo -->
32
33 <div class="demo-description">
34
35 <p>
36 Return the draggable (or it's helper) to its original location when dragging stops with the boolean <code>revert</code> option.
37 </p>
38
39 </div><!-- End demo-description -->
40 </body>
41 </html>
42