Dialog visual test:

- Made it possible to close and re-open the dialog.
- Added buttons.
This commit is contained in:
Scott González 2008-12-19 01:08:32 +00:00
parent cc22cc0de3
commit f00247f9c9

View File

@ -11,9 +11,16 @@
<script type="text/javascript" src="../../ui/ui.resizable.js"></script> <script type="text/javascript" src="../../ui/ui.resizable.js"></script>
<script type="text/javascript"> <script type="text/javascript">
$(function() { $(function() {
var dlg = $("#dlg").remove(); var dlg = $("#dlg").dialog({
autoOpen: false,
width: 600,
buttons: {
Ok: function() {},
Cancel: function() {}
}
});
$("#dialog").click(function() { $("#dialog").click(function() {
dlg.appendTo('body').dialog({width: 600}); dlg.dialog('open');
}); });
}); });
</script> </script>