Changeset 3018 for branches/2.2/expressoMail1_2/js/abas.js
- Timestamp:
- 07/08/10 17:52:20 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/expressoMail1_2/js/abas.js
r1994 r3018 113 113 return alternate_border(id_value); 114 114 var ID = id_value; 115 openTab.imapBox[ID] = current_folder; 115 116 } 116 117 td = document.createElement("TD"); … … 124 125 125 126 td.setAttribute("align", "right"); 126 td.onclick = function(){alternate_border(ID); };127 td.onclick = function(){alternate_border(ID);resizeWindow()}; 127 128 td.setAttribute("noWrap","true"); 128 129 td.alt = borderTitle; … … 152 153 div.style.display=''; 153 154 154 var bar = document.getElementById("toolbar");155 var offset = 0;156 if(bar.style.visibility != 'hidden')157 offset = bar.offsetHeight ? bar.offsetHeight : bar.clientHeight;158 159 div.style.height = document.body.clientHeight - offset - (is_ie ? 76 : 86);160 155 div.style.overflow = "hidden"; 161 156 162 if(!is_ie) {163 var menuHidden = Element("folderscol").style.display == 'none' ? true : false;164 var defaultWidth = document.body.clientWidth - 27;165 if(!menuHidden)166 defaultWidth -= Element("folderscol").offsetWidth;167 168 div.style.width = defaultWidth;169 }170 157 Element("exmail_main_body").insertBefore(div,Element("footer_menu")); 171 158 alternate_border(ID); … … 213 200 if (body) 214 201 { 215 var save_link = Element("save_message_options_"+ID); 216 if (openTab.toPreserve[ID] == undefined) 217 openTab.toPreserve[ID] = false; 218 if ((! openTab.toPreserve[ID] && ! ID.toString().match("_r")) || ((body.contentWindow) == 'object' && body.contentWindow.document.designMode.toLowerCase() == 'on') && (save_link.onclick != '')) 219 { 220 var discard_msg = confirm(get_lang("Your message has not been sent. Discard your message?"), ""); 221 if (!discard_msg) 222 { 223 Element("border_id_"+ID).onclick = function () { alternate_border(ID);}; 224 return; 202 var save_link = Element("save_message_options_"+ID); 203 if (openTab.toPreserve[ID] == undefined) 204 openTab.toPreserve[ID] = false; 205 if ((! openTab.toPreserve[ID] && ! ID.toString().match("_r")) || ((body.contentWindow) == 'object' && body.contentWindow.document.designMode.toLowerCase() == 'on') && (save_link.onclick != '')) 206 { 207 var discard_msg = confirm(get_lang("Your message has not been sent. Discard your message?"), ""); 208 if (!discard_msg) 209 { 210 Element("border_id_"+ID).onclick = function () { alternate_border(ID);}; 211 return; 212 } 213 else 214 { 215 if (openTab.imapBox[ID] && openTab.imapUid[ID] && !openTab.toPreserve[ID]){ 216 delete_msgs(openTab.imapBox[ID], openTab.imapUid[ID].toString(), 0) 217 openTab.toPreserve[ID] = false; 225 218 } 226 else 227 { 228 if (openTab.imapBox[ID] && !openTab.toPreserve[ID]){ 229 delete_msgs(openTab.imapBox[ID], openTab.imapUid[ID].toString(), 0) 230 delete(openTab.imapBox[ID]); 231 openTab.toPreserve[ID] = false; 232 } 233 // Element('to_'+ID).focus(); It crash on IE 234 } 235 } 219 delete(openTab.imapBox[ID]); 220 // Element('to_'+ID).focus(); It crash on IE 221 } 222 } 236 223 } 237 224 } … … 273 260 content = Element('content_id_' + ID); 274 261 content.parentNode.removeChild(content); 262 resizeWindow(); 275 263 return true; 276 264 }
Note: See TracChangeset
for help on using the changeset viewer.