Changeset 1026 for branches/new-dialogs/modules/Dialogs/XinhaDialog.js
- Timestamp:
- 08/23/08 13:19:32 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/new-dialogs/modules/Dialogs/XinhaDialog.js
r1023 r1026 61 61 this.closable = globalOptions.closable; 62 62 } 63 if (typeof(globalOptions.greyout) != 'undefined') { 64 this.greyout = globalOptions.greyout; 65 } 63 66 if (typeof(globalOptions.closeOnEscape) != 'undefined') { 64 67 this.closeOnEscape = globalOptions.closeOnEscape; … … 78 81 //insert styles to make background color skinable 79 82 var styles, stylesheets = document.styleSheets; 83 80 84 for (var i=0;i<stylesheets.length;i++) 81 85 { … … 87 91 doc.body.className = 'xinha_dialog_background'; 88 92 if (dialog.modal) doc.body.className += ' modal'; 93 if (dialog.greyout) doc.body.className += ' greyout'; 89 94 } 90 95 } … … 97 102 backG.className = "xinha_dialog_background"; 98 103 if (this.modal) backG.className += ' modal'; 104 if (this.greyout) backG.className += ' greyout'; 99 105 with (backG.style) 100 106 {
