2015-04-07 00:23:50 +00:00
|
|
|
define( [
|
|
|
|
"lib/common",
|
2015-07-15 01:59:10 +00:00
|
|
|
"ui/widgets/dialog"
|
2015-04-07 00:23:50 +00:00
|
|
|
], function( common ) {
|
|
|
|
|
|
|
|
common.testWidget( "dialog", {
|
2011-04-25 18:04:30 +00:00
|
|
|
defaults: {
|
2012-12-07 19:54:21 +00:00
|
|
|
appendTo: "body",
|
2011-04-25 18:04:30 +00:00
|
|
|
autoOpen: true,
|
2012-12-11 21:23:18 +00:00
|
|
|
buttons: [],
|
2014-12-03 16:23:59 +00:00
|
|
|
classes: {
|
|
|
|
"ui-dialog": "ui-corner-all",
|
|
|
|
"ui-dialog-titlebar": "ui-corner-all"
|
|
|
|
},
|
2011-04-25 18:04:30 +00:00
|
|
|
closeOnEscape: true,
|
2013-08-15 20:56:49 +00:00
|
|
|
closeText: "Close",
|
2011-04-25 18:04:30 +00:00
|
|
|
disabled: false,
|
|
|
|
draggable: true,
|
2012-12-26 13:08:48 +00:00
|
|
|
height: "auto",
|
2011-04-25 18:04:30 +00:00
|
|
|
hide: null,
|
2012-12-07 21:57:03 +00:00
|
|
|
maxHeight: null,
|
|
|
|
maxWidth: null,
|
2011-04-25 18:04:30 +00:00
|
|
|
minHeight: 150,
|
|
|
|
minWidth: 150,
|
|
|
|
modal: false,
|
|
|
|
position: {
|
2012-12-26 13:08:48 +00:00
|
|
|
my: "center",
|
|
|
|
at: "center",
|
2011-04-25 18:04:30 +00:00
|
|
|
of: window,
|
2012-12-26 13:08:48 +00:00
|
|
|
collision: "fit",
|
2011-04-25 18:04:30 +00:00
|
|
|
using: $.ui.dialog.prototype.options.position.using
|
|
|
|
},
|
|
|
|
resizable: true,
|
|
|
|
show: null,
|
2012-11-09 17:26:30 +00:00
|
|
|
title: null,
|
2024-09-09 15:55:58 +00:00
|
|
|
uiDialogTitleHeadingLevel: 0,
|
2011-04-25 18:04:30 +00:00
|
|
|
width: 300,
|
2009-02-02 14:36:08 +00:00
|
|
|
|
2015-08-21 04:11:21 +00:00
|
|
|
// Callbacks
|
2012-11-09 16:17:32 +00:00
|
|
|
beforeClose: null,
|
|
|
|
close: null,
|
|
|
|
create: null,
|
|
|
|
drag: null,
|
|
|
|
dragStart: null,
|
|
|
|
dragStop: null,
|
|
|
|
focus: null,
|
|
|
|
open: null,
|
|
|
|
resize: null,
|
|
|
|
resizeStart: null,
|
|
|
|
resizeStop: null
|
2011-04-25 18:04:30 +00:00
|
|
|
}
|
2015-08-24 12:59:54 +00:00
|
|
|
} );
|
2015-04-07 00:23:50 +00:00
|
|
|
|
|
|
|
} );
|