Dialog: added dialogClass option (not officially supported right now).

This commit is contained in:
Scott González 2008-05-30 18:08:39 +00:00
parent c76f3194a1
commit 3d16364e61

View File

@ -44,7 +44,7 @@
.wrap(document.createElement('div')); .wrap(document.createElement('div'));
var uiDialogContainer = uiDialogContent.parent().addClass('ui-dialog-container').css({position: 'relative'}); var uiDialogContainer = uiDialogContent.parent().addClass('ui-dialog-container').css({position: 'relative'});
var uiDialog = (this.uiDialog = uiDialogContainer.parent()).hide() var uiDialog = (this.uiDialog = uiDialogContainer.parent()).hide()
.addClass('ui-dialog') .addClass('ui-dialog').addClass(options.dialogClass)
.css({position: 'absolute', width: options.width, height: options.height, overflow: 'hidden'}); .css({position: 'absolute', width: options.width, height: options.height, overflow: 'hidden'});
var classNames = uiDialogContent.attr('className').split(' '); var classNames = uiDialogContent.attr('className').split(' ');