2008-09-20 17:42:04 +00:00
<!doctype html>
< html lang = "en" >
< head >
2008-12-22 17:12:26 +00:00
< title > Dialog Visual Tests Page< / title >
2009-01-22 12:01:20 +00:00
< link rel = "stylesheet" href = "../all.css" type = "text/css" >
< link rel = "stylesheet" href = "../../../themes/base/ui.all.css" type = "text/css" >
2009-02-20 11:40:25 +00:00
< script type = "text/javascript" src = "../../../jquery-1.3.2.js" > < / script >
2009-09-17 10:39:12 +00:00
< script type = "text/javascript" src = "../../../ui/jquery.ui.core.js" > < / script >
2009-12-16 22:20:18 +00:00
< script type = "text/javascript" src = "../../../ui/jquery.ui.widget.js" > < / script >
2009-09-17 10:39:12 +00:00
< script type = "text/javascript" src = "../../../ui/jquery.ui.draggable.js" > < / script >
< script type = "text/javascript" src = "../../../ui/jquery.ui.position.js" > < / script >
< script type = "text/javascript" src = "../../../ui/jquery.ui.resizable.js" > < / script >
< script type = "text/javascript" src = "../../../ui/jquery.ui.stackfix.js" > < / script >
< script type = "text/javascript" src = "../../../ui/jquery.ui.dialog.js" > < / script >
2008-09-20 17:42:04 +00:00
< script type = "text/javascript" >
$(function() {
2008-12-22 17:12:26 +00:00
// Simple Dialog
$("#dialog button").click(function() {
2008-12-23 04:24:28 +00:00
$("#dlg").clone().removeAttr('id').dialog();
2008-12-22 17:12:26 +00:00
});
// Dialog with Buttons
var dlgbuttons = $("#dlgbuttons").dialog({
2008-12-19 01:08:32 +00:00
autoOpen: false,
width: 600,
buttons: {
Ok: function() {},
Cancel: function() {}
}
});
2008-12-22 17:12:26 +00:00
$("#dialogbuttons").click(function() {
dlgbuttons.dialog('open');
2008-09-20 17:42:04 +00:00
});
2008-12-22 17:12:26 +00:00
2008-09-20 17:42:04 +00:00
});
< / script >
< / head >
< body >
< ul class = "plugins" >
2008-12-13 10:23:26 +00:00
< li class = "plugin" >
2008-09-20 17:42:04 +00:00
Dialog
< div id = "dialog" >
< button > Open< / button >
2008-12-13 11:22:17 +00:00
< 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 >
2008-09-20 17:42:04 +00:00
< / div >
< / li >
2008-12-22 17:12:26 +00:00
< li class = "plugin" >
Dialog with buttons
< div id = "dialogbuttons" >
< button > Open< / button >
< div id = "dlgbuttons" 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 >
2008-09-20 17:42:04 +00:00
< / ul >
< / body >
< / html >