source: main/trunk/greenstone3/web/interfaces/oran/js/jquery-ui-1.8rc1/demos/dialog/modal-confirmation.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: 2.6 KB
Line 
1<!doctype html>
2<html lang="en">
3<head>
4 <title>jQuery UI Dialog - Modal confirmation</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="../../external/jquery.bgiframe-2.1.1.js"></script>
8 <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
9 <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
10 <script type="text/javascript" src="../../ui/jquery.ui.mouse.js"></script>
11 <script type="text/javascript" src="../../ui/jquery.ui.button.js"></script>
12 <script type="text/javascript" src="../../ui/jquery.ui.draggable.js"></script>
13 <script type="text/javascript" src="../../ui/jquery.ui.position.js"></script>
14 <script type="text/javascript" src="../../ui/jquery.ui.dialog.js"></script>
15 <link type="text/css" href="../demos.css" rel="stylesheet" />
16 <script type="text/javascript">
17 $(function() {
18 // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
19 $("#dialog").dialog("destroy");
20
21 $("#dialog-confirm").dialog({
22 resizable: false,
23 height:140,
24 modal: true,
25 buttons: {
26 'Delete all items': function() {
27 $(this).dialog('close');
28 },
29 Cancel: function() {
30 $(this).dialog('close');
31 }
32 }
33 });
34 });
35 </script>
36</head>
37<body>
38
39<div class="demo">
40
41<div id="dialog-confirm" title="Empty the recycle bin?">
42 <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>
43</div>
44
45<!-- Sample page content to illustrate the layering of the dialog -->
46<div class="hiddenInViewSource" style="padding:20px;">
47 <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>
48 <form>
49 <input value="text input" /><br />
50 <input type="checkbox" />checkbox<br />
51 <input type="radio" />radio<br />
52 <select>
53 <option>select</option>
54 </select><br /><br />
55 <textarea>textarea</textarea><br />
56 </form>
57</div><!-- End sample page content -->
58
59</div><!-- End demo -->
60
61<div class="demo-description">
62
63<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>
64
65</div><!-- End demo-description -->
66
67</body>
68</html>
Note: See TracBrowser for help on using the repository browser.