Changeset 1026 for branches/new-dialogs
- Timestamp:
- 08/23/08 13:19:32 (3 years ago)
- Location:
- branches/new-dialogs
- Files:
-
- 3 modified
-
Xinha.css (modified) (1 diff)
-
XinhaCore.js (modified) (1 diff)
-
modules/Dialogs/XinhaDialog.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/new-dialogs/Xinha.css
r1010 r1026 122 122 } 123 123 .xinha_dialog_background { 124 filter: alpha(opacity =0);124 filter: alpha(opacity=0); 125 125 -moz-opacity: 0; 126 126 opacity: 0; 127 127 border:none; 128 128 } 129 .xinha_dialog_background.modal {129 .xinha_dialog_background.modal.greyout { 130 130 background-color:#666; 131 filter: alpha(opacity = 70);131 filter: alpha(opacity=70) !IMPORTANT; 132 132 -moz-opacity: 0.7; 133 133 opacity: 0.7; 134 } 135 .xinha_dialog_background.modal { 136 filter: alpha(opacity=0) !IMPORTANT; 137 -moz-opacity: 0; 138 opacity: 0; 134 139 border:none; 135 140 } 141 body.xinha_dialog_background.modal.greyout { 142 filter: alpha(opacity=100) !IMPORTANT; 143 } 136 144 body.xinha_dialog_background.modal { 137 filter: alpha(opacity = 100);145 filter: alpha(opacity=0); 138 146 } 139 147 .dialog .content { padding: 2px; } -
branches/new-dialogs/XinhaCore.js
r1018 r1026 977 977 "Formatted": "pre" 978 978 }; 979 980 this.dialogOptions = 981 { 982 'centered' : true, //true: dialog is shown in the center the screen, false dialog is shown near the clicked toolbar button 983 'greyout':true, //true: when showing modal dialogs, the page behind the dialoge is greyed-out 984 'closeOnEscape':true 985 }; 986 979 987 /** ?? 980 988 * Default: <code>{}</code> -
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 {
