]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: added dialogClass option (not officially supported right now).
authorScott González <scott.gonzalez@gmail.com>
Fri, 30 May 2008 18:08:39 +0000 (18:08 +0000)
committerScott González <scott.gonzalez@gmail.com>
Fri, 30 May 2008 18:08:39 +0000 (18:08 +0000)
ui/source/ui.dialog.js

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