client/player/development-bundle/demos/dialog/modal-confirmation.html
changeset 1 436d4791d7ac
equal deleted inserted replaced
0:ecdfc63274bf 1:436d4791d7ac
       
     1 <!DOCTYPE html>
       
     2 <html lang="en">
       
     3 <head>
       
     4 	<meta charset="UTF-8" />
       
     5 	<title>jQuery UI Dialog - Modal confirmation</title>
       
     6 	<link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
       
     7 	<script type="text/javascript" src="../../jquery-1.4.2.js"></script>
       
     8 	<script type="text/javascript" src="../../external/jquery.bgiframe-2.1.1.js"></script>
       
     9 	<script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
       
    10 	<script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
       
    11 	<script type="text/javascript" src="../../ui/jquery.ui.mouse.js"></script>
       
    12 	<script type="text/javascript" src="../../ui/jquery.ui.button.js"></script>
       
    13 	<script type="text/javascript" src="../../ui/jquery.ui.draggable.js"></script>
       
    14 	<script type="text/javascript" src="../../ui/jquery.ui.position.js"></script>
       
    15 	<script type="text/javascript" src="../../ui/jquery.ui.dialog.js"></script>
       
    16 	<link type="text/css" href="../demos.css" rel="stylesheet" />
       
    17 	<script type="text/javascript">
       
    18 	$(function() {
       
    19 		// a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
       
    20 		$("#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 <div class="demo-description">
       
    63 
       
    64 <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>
       
    65 
       
    66 </div><!-- End demo-description -->
       
    67 
       
    68 </body>
       
    69 </html>