mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
tests/visual/dialog: Added some content to the simple dialog test
This commit is contained in:
parent
6bdc9f7c96
commit
71528f7fc4
@ -21,7 +21,10 @@
|
||||
$(function() {
|
||||
$("#accordion").accordion();
|
||||
$("#datepicker").datepicker();
|
||||
$("#dialog").click(function() { $("<div></div>").dialog(); });
|
||||
var dlg = $("#dlg").remove();
|
||||
$("#dialog").click(function() {
|
||||
dlg.appendTo('body').dialog();
|
||||
});
|
||||
$("#draggable").draggable();
|
||||
$(".draggable").draggable();
|
||||
$("#droppable").droppable({
|
||||
@ -75,6 +78,9 @@
|
||||
Dialog
|
||||
<div id="dialog">
|
||||
<button>Open</button>
|
||||
<div id="dlg" title="Dialog Title">
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="plugin">
|
||||
|
@ -11,8 +11,9 @@
|
||||
<script type="text/javascript" src="../../ui/ui.resizable.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var dlg = $("#dlg").remove();
|
||||
$("#dialog").click(function() {
|
||||
$("<div></div>").dialog();
|
||||
dlg.appendTo('body').dialog();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@ -24,6 +25,9 @@
|
||||
Dialog
|
||||
<div id="dialog">
|
||||
<button>Open</button>
|
||||
<div id="dlg" title="Dialog Title">
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
Loading…
Reference in New Issue
Block a user