Changeset 1518 for trunk/expressoMail1_2/js/main.js
- Timestamp:
- 10/20/09 15:24:08 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/main.js
r1443 r1518 24 24 ConstructMenuTools(); 25 25 26 if ((preferences.use_local_messages==1) && (!window.google || !google.gears)) { 27 temp = confirm(get_lang("To use local messages you have to install google gears. Would you like to be redirected to gears installation page?")); 28 if (temp) { 29 location.href = "http://gears.google.com/?action=install&message="+ 30 "Para utilizar o recurso de mensagens locais, instale o google gears&return=" + document.location.href; 31 } 32 else { 33 preferences.use_local_messages=0; 34 } 35 } 36 26 37 // Insere a applet de criptografia 27 38 if (preferences.use_signature_digital_cripto == '1'){ … … 51 62 cExecute ("$this.functions.get_preferences", save_preferences); 52 63 setTimeout('auto_refresh()', time_refresh); 53 if(window.google && google.gears) 54 if(expresso_local_messages.is_offline_installed()) 64 if (window.google && google.gears) { 65 setTimeout('auto_archiving()', 30000); 66 if (expresso_local_messages.is_offline_installed()) { 55 67 check_mail_in_queue(); 68 } 69 } 56 70 } 57 71 … … 357 371 refresh(preferences.alert_new_msg); 358 372 setTimeout('auto_refresh()', time_refresh); 373 } 374 375 function auto_archiving() { 376 expresso_mail_sync.start_sync(); 377 setTimeout('auto_archiving()',600000); 359 378 } 360 379
Note: See TracChangeset
for help on using the changeset viewer.