Mercurial > hg > MPIWGThesaurus
comparison jquery-ui/development-bundle/demos/dialog/modal-confirmation.html @ 0:b2e4605f20b2
beta version
author | dwinter |
---|---|
date | Thu, 30 Jun 2011 09:07:49 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:b2e4605f20b2 |
---|---|
1 <!DOCTYPE html> | |
2 <html lang="en"> | |
3 <head> | |
4 <meta charset="utf-8"> | |
5 <title>jQuery UI Dialog - Modal confirmation</title> | |
6 <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css"> | |
7 <script src="../../jquery-1.5.1.js"></script> | |
8 <script src="../../external/jquery.bgiframe-2.1.2.js"></script> | |
9 <script src="../../ui/jquery.ui.core.js"></script> | |
10 <script src="../../ui/jquery.ui.widget.js"></script> | |
11 <script src="../../ui/jquery.ui.mouse.js"></script> | |
12 <script src="../../ui/jquery.ui.button.js"></script> | |
13 <script src="../../ui/jquery.ui.draggable.js"></script> | |
14 <script src="../../ui/jquery.ui.position.js"></script> | |
15 <script src="../../ui/jquery.ui.dialog.js"></script> | |
16 <link rel="stylesheet" href="../demos.css"> | |
17 <script> | |
18 $(function() { | |
19 // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore! | |
20 $( "#dialog:ui-dialog" ).dialog( "destroy" ); | |
21 | |
22 $( "#dialog-confirm" ).dialog({ | |
23 resizable: false, | |
24 height:140, | |
25 modal: true, | |
26 buttons: { | |
27 "Delete all items": function() { | |
28 $( this ).dialog( "close" ); | |
29 }, | |
30 Cancel: function() { | |
31 $( this ).dialog( "close" ); | |
32 } | |
33 } | |
34 }); | |
35 }); | |
36 </script> | |
37 </head> | |
38 <body> | |
39 | |
40 <div class="demo"> | |
41 | |
42 <div id="dialog-confirm" title="Empty the recycle bin?"> | |
43 <p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>These items will be permanently deleted and cannot be recovered. Are you sure?</p> | |
44 </div> | |
45 | |
46 <!-- Sample page content to illustrate the layering of the dialog --> | |
47 <div class="hiddenInViewSource" style="padding:20px;"> | |
48 <p>Sed vel diam id libero <a href="http://example.com">rutrum convallis</a>. Donec aliquet leo vel magna. Phasellus rhoncus faucibus ante. Etiam bibendum, enim faucibus aliquet rhoncus, arcu felis ultricies neque, sit amet auctor elit eros a lectus.</p> | |
49 <form> | |
50 <input value="text input" /><br /> | |
51 <input type="checkbox" />checkbox<br /> | |
52 <input type="radio" />radio<br /> | |
53 <select> | |
54 <option>select</option> | |
55 </select><br /><br /> | |
56 <textarea>textarea</textarea><br /> | |
57 </form> | |
58 </div><!-- End sample page content --> | |
59 | |
60 </div><!-- End demo --> | |
61 | |
62 | |
63 | |
64 <div class="demo-description"> | |
65 <p>Confirm an action that may be destructive or important. Set the <code>modal</code> option to true, and specify primary and secondary user actions with the <code>buttons</code> option.</p> | |
66 </div><!-- End demo-description --> | |
67 | |
68 </body> | |
69 </html> |