Changeset 1701
- Timestamp:
- 11/24/09 14:43:05 (14 years ago)
- Location:
- trunk/expressoMail1_2/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/abas.js
r1683 r1701 17 17 if (spanD) 18 18 spanD.style.display = (openTab.type[ID] == 0 ? '' : 'none'); 19 20 var footer_menu = Element("footer_menu"); 21 if (footer_menu) { 22 footer_menu.style.display = (openTab.type[ID] != 4 ? '' : 'none'); 23 } 24 19 25 var len = BordersArray.length; 20 26 for (var i=0; i < len; i++) … … 78 84 if (typeof(ID) == 'number') 79 85 { 80 if (openTab.imapBox[ID]) 81 { 82 current_folder = openTab.imapBox[ID]; 83 } 84 openTab.type[ID] = 0; 85 numBox=ID; 86 if (openTab.imapBox[ID]) 87 { 88 current_folder = openTab.imapBox[ID]; 89 } 90 //openTab.type[ID] = 0; 91 numBox=ID; 92 86 93 } 87 94 else 88 if (ID.match("search_")) 89 numBox=ID.substr(7); 90 currentTab=ID; 95 if (ID.match("search_")) 96 numBox=ID.substr(7); 97 98 currentTab=ID; 91 99 return ID; 92 100 } -
trunk/expressoMail1_2/js/draw_api.js
r1691 r1701 180 180 else{ 181 181 if (!window.google || !google.gears) { 182 temp = confirm(get_lang("To use local messages you have to install google gears. Would you like to be redirected to gears installation page?")); 183 if (temp) { 184 location.href = "http://gears.google.com/?action=install&message=" + 185 "Para utilizar o recurso de mensagens locais, instale o google gears&return=" + 186 document.location.href; 187 } 188 else { 189 preferences.use_local_messages = 0; 190 } 182 temp = confirm(get_lang("To use local messages you have to install google gears. Would you like to be redirected to gears installation page?")); 183 if (temp) { 184 location.href = "http://gears.google.com/?action=install&message="+ 185 "Para utilizar o recurso de mensagens locais, instale o google gears&return=" + 186 document.location.href; 191 187 } 192 188 else { 193 if (expresso_offline) 194 tree_folders = new dFTree({ 195 name: 'tree_folders' 189 preferences.use_local_messages=0; 190 } 191 } 192 else{ 193 if (expresso_offline) 194 tree_folders = new dFTree({ 195 name: 'tree_folders' 196 }); 197 var root_local = new dNode({ 198 id: "local_root", 199 caption: get_lang('local folders') 200 }); 201 tree_folders.add(root_local, "root"); //coloca root local 202 var local_folders = expresso_local_messages.list_local_folders(); 203 for (var i in local_folders) { //Coloca as pastas locais. 204 var node_root = "local_root"; 205 var new_caption = local_folders[i][0]; 206 if (local_folders[i][0].indexOf("/") != "-1") { 207 final_pos = local_folders[i][0].lastIndexOf("/"); 208 node_root = "local_" + local_folders[i][0].substr(0, final_pos); 209 new_caption = local_folders[i][0].substr(final_pos + 1); 210 } 211 if (local_folders[i][1] > 0) 212 var nodeLocal = new dNode({ 213 id: "local_" + local_folders[i][0], 214 caption: lang_folder(new_caption) + '<font style=color:red> (</font><span id="local_unseen" style=color:red>' + local_folders[i][1] + '</span><font style=color:red>)</font>', 215 onClick: "change_folder('local_" + local_folders[i][0] + "','" + new_caption + "')", 216 plusSign: local_folders[i][2] 196 217 }); 197 var root_local = new dNode({ 198 id: "local_root", 199 caption: get_lang('local folders') 200 }); 201 tree_folders.add(root_local, "root"); //coloca root local 202 var local_folders = expresso_local_messages.list_local_folders(); 203 for (var i in local_folders) { //Coloca as pastas locais. 204 var node_root = "local_root"; 205 var new_caption = local_folders[i][0]; 206 if (local_folders[i][0].indexOf("/") != "-1") { 207 final_pos = local_folders[i][0].lastIndexOf("/"); 208 node_root = "local_" + local_folders[i][0].substr(0, final_pos); 209 new_caption = local_folders[i][0].substr(final_pos + 1); 210 } 211 if (local_folders[i][1] > 0) 212 var nodeLocal = new dNode({ 213 id: "local_" + local_folders[i][0], 214 caption: lang_folder(new_caption) + '<font style=color:red> (</font><span id="local_unseen" style=color:red>' + local_folders[i][1] + '</span><font style=color:red>)</font>', 215 onClick: "change_folder('local_" + local_folders[i][0] + "','" + new_caption + "')", 216 plusSign: local_folders[i][2] 217 }); 218 else 219 var nodeLocal = new dNode({ 220 id: "local_" + local_folders[i][0], 221 caption: lang_folder(new_caption), 222 onClick: "change_folder('local_" + local_folders[i][0] + "','" + new_caption + "')", 223 plusSign: local_folders[i][2] 224 }); 218 else 219 var nodeLocal = new dNode({ 220 id: "local_" + local_folders[i][0], 221 caption: lang_folder(new_caption), 222 onClick: "change_folder('local_" + local_folders[i][0] + "','" + new_caption + "')", 223 plusSign: local_folders[i][2] 224 }); 225 225 tree_folders.add(nodeLocal, node_root); 226 226 } 227 227 } 228 } 228 } 229 229 } 230 230 … … 1850 1850 return false; 1851 1851 hold_session = true; 1852 1853 var footer_menu = Element("footer_menu"); 1854 if (footer_menu) { 1855 footer_menu.style.display = 'none'; 1856 } 1852 1857 ///////////////////////////////////////////////////////////////////////////////////////////////////////// 1853 1858 var form = document.createElement("FORM"); … … 2249 2254 else 2250 2255 { 2251 2256 var input_return_receipt = document.createElement('input'); 2252 2257 input_return_receipt.name = "input_return_receipt"; 2253 2258 } … … 2261 2266 // Workaround para resolver problema ao enviar e-mails 2262 2267 if((preferences.use_assinar_criptografar != '0')) 2263 2268 { 2264 2269 if(parseInt(preferences.use_signature_digital_cripto)==1) 2265 2266 2270 { 2271 td_return_receipt.innerHTML += " " + get_lang("Digitally sign message?")+""; 2267 2272 2268 2273 if (is_ie) … … 2272 2277 else 2273 2278 { 2274 2279 var input_return_digital = document.createElement('input'); 2275 2280 input_return_digital.name = "input_return_digital"; 2276 2281 } 2277 2282 2278 2279 2280 2281 2283 input_return_digital.type = "checkbox"; 2284 input_return_digital.className = "checkbox"; 2285 input_return_digital.id = "return_digital_"+ID; 2286 input_return_digital.setAttribute("tabIndex","-1"); 2282 2287 if(parseInt(preferences.use_signature_digital)==1) 2283 2284 2285 2286 2287 2288 { 2289 input_return_digital.defaultChecked=true; 2290 } 2291 td_return_receipt.appendChild(input_return_digital); 2292 td_return_receipt.innerHTML += " " + get_lang("Digitally crypt message?")+""; 2288 2293 2289 2294 if (is_ie) … … 2293 2298 else 2294 2299 { 2295 2300 var input_return_cripto = document.createElement('input'); 2296 2301 input_return_cripto.name = "input_return_cripto"; 2297 2302 } 2298 2303 2299 2300 2301 2302 2303 2304 input_return_cripto.type = "checkbox"; 2305 input_return_cripto.className = "checkbox"; 2306 input_return_cripto.id = "return_cripto_"+ID; 2307 input_return_cripto.setAttribute("tabIndex","-1"); 2308 input_return_cripto.defaultChecked=false; 2304 2309 2305 2310 if(parseInt(preferences.use_signature_cripto)==1) 2306 2307 2308 2309 2310 2311 { 2312 input_return_cripto.defaultChecked=true; 2313 } 2314 2315 td_return_receipt.appendChild(input_return_cripto); 2311 2316 td_return_receipt.innerHTML += ""; 2312 2317 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 td_important_msg.appendChild(input_important_message); 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 var td5_input = document.createElement("TD"); 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 tr6.appendChild(td6_input); 2362 2318 } 2319 } 2320 2321 tr5.appendChild(td5); 2322 tr5.appendChild(td_return_receipt); 2323 tbody_message.appendChild(tr5); 2324 if (parseInt(preferences.use_important_flag)) 2325 { 2326 var trn = document.createElement("TR"); 2327 var tdn = document.createElement("TD"); 2328 tdn.innerHTML = " "; 2329 var td_important_msg = document.createElement("TD"); 2330 td_important_msg.setAttribute("noWrap","true"); 2331 td_important_msg.innerHTML = get_lang("Important message")+":"; 2332 var input_important_message = document.createElement('input'); 2333 input_important_message.type = "checkbox"; 2334 input_important_message.className = "checkbox"; 2335 input_important_message.id = "important_message_"+ID; 2336 input_important_message.name = "input_important_message"; 2337 input_important_message.setAttribute("tabIndex","-1"); 2338 td_important_msg.appendChild(input_important_message); 2339 trn.appendChild(tdn); 2340 trn.appendChild(td_important_msg); 2341 tbody_message.appendChild(trn); 2342 } 2343 2344 var add_files = document.createElement("A"); 2345 add_files.setAttribute("href", "javascript:void(0)"); 2346 add_files.onclick = function () { addFile(ID); return false;}; 2347 add_files.innerHTML = get_lang("Attachments: add+"); 2348 add_files.setAttribute("tabIndex","-1"); 2349 var divfiles = document.createElement("DIV"); 2350 divfiles.id = "divFiles_"+ID; 2351 var tr5 = document.createElement("TR"); 2352 var td5_link = document.createElement("TD"); 2353 var td5_input = document.createElement("TD"); 2354 td5_input.innerHTML = " " 2355 td5_link.setAttribute("valign","top"); 2356 td5_link.setAttribute("colSpan","2"); 2357 td5_link.appendChild(add_files); 2358 tr5.appendChild(td5_input); 2359 tr5.appendChild(td5_link); 2360 tbody_message.appendChild(tr5); 2361 var tr6 = document.createElement("TR"); 2362 var td6_link = document.createElement("TD"); 2363 var td6_input = document.createElement("TD"); 2364 tr6.appendChild(td6_link); 2365 td6_input.appendChild(divfiles); 2366 tr6.appendChild(td6_input); 2367 tbody_message.appendChild(tr6); 2363 2368 ////////////////////////////////////////////////////////////////////////////////////////////////////// 2364 2365 var td5 = document.createElement("TD"); 2366 2367 2368 2369 2370 2371 2372 2373 2374 2369 var tr5 = document.createElement("TR"); 2370 var td5 = document.createElement("TD"); 2371 td5.innerHTML = " "; 2372 var td_body = document.createElement("TD"); 2373 td_body.setAttribute("colSpan","2"); 2374 var div_body_position = document.createElement("DIV"); 2375 div_body_position.id = "body_position_" + ID; 2376 td_body.appendChild(div_body_position); 2377 tr5.appendChild(td5); 2378 tr5.appendChild(td_body); 2379 tbody_message.appendChild(tr5); 2375 2380 // BEGIN MAKE THE SCROLL HEIGHT 2376 2381 var defaultWidth = document.body.clientWidth - (is_ie ? 200 : 195); 2377 2378 2379 if(_bar.style.visibility != 'hidden') 2380 _offset = _bar.offsetHeight ? _bar.offsetHeight : _bar.clientHeight; 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2382 var _bar = document.getElementById("toolbar"); 2383 var _offset = 0; 2384 if(_bar.style.visibility != 'hidden') 2385 _offset = _bar.offsetHeight ? _bar.offsetHeight : _bar.clientHeight; 2386 var _div = document.createElement("DIV"); 2387 _div.id = "div_message_scroll_"+ID; 2388 _div.style.height = document.body.clientHeight - _offset - 105; 2389 content.style.height = document.body.clientHeight - _offset - 80; 2390 _div.style.overflow = "auto"; 2391 _div.style.width = defaultWidth; 2392 // END MAKE THE SCROLL HEIGHT 2393 2394 // Hide the contac tips and re-position the pallete color. 2395 _div.onscroll = function() { 2396 var intElemScrollTop = Element("div_message_scroll_"+ID).scrollTop; 2397 if (!is_ie) 2398 ColorPalette.repos(intElemScrollTop); 2399 Tooltip.scrollChanged(); 2400 }; 2396 2401 ////////////////////////////////////////////////////////////////////////////////////////////////////// 2397 2398 2399 2400 2401 2402 2402 _div.appendChild(form); 2403 content.appendChild(_div); 2404 table_message.appendChild(tbody_message); 2405 form.appendChild(table_message); 2406 connector.loadScript("rich_text_editor"); 2407 RichTextEditor.loadEditor(ID); 2403 2408 ////////////////////////////////////////////////////////////////////////////////////////////////////// 2404 2405 2406 2409 if(!expresso_offline) 2410 draw_from_field(sel_from,tr1_1); 2411 return ID; 2407 2412 } 2408 2413
Note: See TracChangeset
for help on using the changeset viewer.