mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Dialog visual test:
- Made it possible to close and re-open the dialog. - Added buttons.
This commit is contained in:
parent
cc22cc0de3
commit
f00247f9c9
@ -11,9 +11,16 @@
|
||||
<script type="text/javascript" src="../../ui/ui.resizable.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var dlg = $("#dlg").remove();
|
||||
var dlg = $("#dlg").dialog({
|
||||
autoOpen: false,
|
||||
width: 600,
|
||||
buttons: {
|
||||
Ok: function() {},
|
||||
Cancel: function() {}
|
||||
}
|
||||
});
|
||||
$("#dialog").click(function() {
|
||||
dlg.appendTo('body').dialog({width: 600});
|
||||
dlg.dialog('open');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user