Changeset 1857
- Timestamp:
- 12/16/09 16:30:01 (14 years ago)
- Location:
- trunk/expressoMail1_2/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/connector.js
r1444 r1857 303 303 cConnector.prototype.newRequest = function (id, target, method, handler, data) 304 304 { 305 305 306 var params = data; 306 307 this.tid = id; 308 307 309 if (this.requests[id]) { 308 310 return false; 309 311 } 310 312 311 313 this.createXMLHTTP(); 312 314 var oxmlhttp = this.oxmlhttp; 313 315 var _thisObject = this; 314 316 315 317 if (! oxmlhttp) 316 318 return false; … … 319 321 this.buildBar(); 320 322 this.showProgressBar(); 321 323 322 324 var sub_handler = function () 323 325 { … … 328 330 if (oxmlhttp.readyState == 4 ) 329 331 { 330 331 332 switch (oxmlhttp.status) 332 333 { 333 334 334 335 case 200: 335 336 if (typeof(handler) == 'function') … … 343 344 document.getElementById("debug_controller").innerHTML += "<br>-------------------------------------------------------------------------------------<br>"; 344 345 } 345 handler(data); 346 346 347 _thisObject.addToCache(params?id+"&"+params:id,data); 347 348 delete _thisObject.requests[id]; 348 349 _thisObject.requests[id] = null; 350 handler(data); 349 351 } 350 352 … … 373 375 try 374 376 { 375 376 377 if (method == '' || method == 'GET') 377 378 { -
trunk/expressoMail1_2/js/mail_sync.js
r1722 r1857 38 38 } 39 39 catch (ex) { 40 if(new Date .getTime()-start_trying>10000) { //too much time trying, throw an exception40 if(new Date().getTime()-start_trying>10000) { //too much time trying, throw an exception 41 41 throw ex; 42 42 } … … 54 54 55 55 var rs = this.dbGears.execute("select id_folder,folder_name from folders_sync where uid_usuario=?",[account_id]); 56 if(!rs.isValidRow()) 56 if(!rs.isValidRow()) { 57 this.dbGears.close(); 57 58 return; 59 } 60 58 61 59 62 this.working=true; … … 168 171 else { 169 172 document.getElementById('main_title').innerHTML = get_lang("Starting to sync folder")+" "+lang_folder(folder_to_sync[1]); 170 cExecute("$this.imap_functions.msgs_to_archive&folder=" + folder_to_sync[0] + "&mails=" + folder_to_sync[2], start_sync_mails); 173 var params = "folder="+folder_to_sync[0]+"&mails="+folder_to_sync[2]; 174 cExecute("$this.imap_functions.msgs_to_archive", start_sync_mails,params); 171 175 this.is_auto = true; 172 176 }
Note: See TracChangeset
for help on using the changeset viewer.