Changeset 1985 for branches/2.1
- Timestamp:
- 02/05/10 10:16:24 (15 years ago)
- Location:
- branches/2.1/expressoMail1_2/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/expressoMail1_2/js/local_messages.js
r1970 r1985 7 7 this.localServer = null; 8 8 this.store = null; 9 this.fileSubmitter = null;10 9 } 11 10 … … 118 117 else return false; 119 118 } 120 local_messages.prototype.init_local_messages = function(){ 119 120 local_messages.prototype.create_objects = function(){ 121 121 if(this.dbGears == null) 122 122 this.dbGears = google.gears.factory.create('beta.database'); … … 124 124 this.localServer = google.gears.factory.create('beta.localserver'); 125 125 if(this.store==null) 126 this.store = this.localServer.createStore('test-store'); 127 126 this.store = this.localServer.createStore('test-store'); 127 } 128 129 local_messages.prototype.init_local_messages = function(){ 130 131 if(this.dbGears==null || this.localServer==null || this.store == null) 132 this.create_objects(); 133 128 134 var db_in_other_use = true; 129 135 var start_trying = new Date().getTime(); … … 1590 1596 var expresso_local_messages; 1591 1597 expresso_local_messages = new local_messages(); 1598 expresso_local_messages.create_objects(); -
branches/2.1/expressoMail1_2/js/main.js
r1970 r1985 11 11 var save_contacts = function(data){ 12 12 contacts = data; 13 expresso_local_messages.capt_url('controller.php?action=$this.db_functions.get_dropdown_contacts_to_cache'); 13 14 if (preferences.use_local_messages == 1 && window.google && google.gears) 15 if (expresso_local_messages.is_offline_installed()) 16 expresso_local_messages.capt_url('controller.php?action=$this.db_functions.get_dropdown_contacts_to_cache'); 14 17 } 15 18 var save_preferences = function(data){ … … 53 56 } 54 57 // Fim da inserção da applet 55 58 cExecute ("$this.db_functions.get_dropdown_contacts", save_contacts); //Save contacts needs preferences. 56 59 cExecute ("$this.imap_functions.get_folders_list&onload=true", update_menu); 57 60 } … … 68 71 cyrus_delimiter = Element('cyrus_delimiter').value; 69 72 70 cExecute ("$this.db_functions.get_dropdown_contacts", save_contacts);71 73 cExecute ("$this.functions.get_preferences", save_preferences); 72 74 setTimeout('auto_refresh()', time_refresh);
Note: See TracChangeset
for help on using the changeset viewer.