jquery-ui/tests/unit/dialog/dialog_defaults.js

42 lines
741 B
JavaScript
Raw Normal View History

/*
* dialog_defaults.js
*/
var dialog_defaults = {
autoOpen: true,
buttons: {},
closeOnEscape: true,
closeText: 'close',
disabled: false,
dialogClass: '',
draggable: true,
height: 'auto',
2009-02-09 11:15:23 +00:00
hide: null,
maxHeight: false,
maxWidth: false,
minHeight: 150,
minWidth: 150,
modal: false,
position: {
my: 'center',
at: 'center',
of: window,
collision: 'fit',
// ensure that the titlebar is never outside the document
using: function(pos) {
var topOffset = $(this).css(pos).offset().top;
if (topOffset < 0) {
$(this).css('top', pos.top - topOffset);
}
}
},
resizable: true,
2009-02-09 11:15:23 +00:00
show: null,
stack: true,
title: '',
width: 300,
zIndex: 1000
};
commonWidgetTests('dialog', { defaults: dialog_defaults });