Changeset 1595 for trunk/expressoMail1_2/js/local_messages.js
- Timestamp:
- 11/05/09 16:22:24 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/local_messages.js
r1518 r1595 33 33 34 34 var db_in_other_use = true; 35 var start_trying = new Date().getTime(); 35 36 while (db_in_other_use) { 36 37 try { … … 39 40 } 40 41 catch (ex) { 41 db_in_other_use=true; 42 if(new Date.getTime()-start_trying>10000) { //too much time trying, throw an exception 43 throw ex; 44 } 42 45 } 43 46 } … … 934 937 } 935 938 936 local_messages.prototype.get_folders_to_sync = function() { 939 local_messages.prototype.get_folders_to_sync = function() {//Precisa ter visibilidade ao array de linguagens. 937 940 this.init_local_messages(); 938 941 var rs = this.dbGears.execute("select id_folder,folder_name from folders_sync where uid_usuario="+account_id); … … 941 944 temp = new Array(); 942 945 temp[0] = rs.field(0); 943 temp[1] = rs.field(1); 946 if(temp[0]=='INBOX/Drafts' ||temp[0]=='INBOX/Trash' || temp[0]=='INBOX/Sent') { 947 temp[1] = array_lang[rs.field(1).toLowerCase()]; 948 } 949 else { 950 temp[1] = rs.field(1); 951 } 952 944 953 retorno.push(temp); 945 954 rs.next();
Note: See TracChangeset
for help on using the changeset viewer.