Changeset 2563
- Timestamp:
- 04/16/10 13:19:40 (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/jscode/local_messages.js
r2519 r2563 20 20 { 21 21 return this.Answered; 22 } 22 }; 23 23 24 24 HeaderFlags.prototype.setAnswered = function(answered) 25 25 { 26 26 this.Answered = answered; 27 } 27 }; 28 28 29 29 //HeaderFlags.prototype.getDraft = function() … … 35 35 { 36 36 this.Draft = draft; 37 } 37 }; 38 38 39 39 HeaderFlags.prototype.getFlagged = function() 40 40 { 41 41 return this.Flagged; 42 } 42 }; 43 43 44 44 HeaderFlags.prototype.setFlagged = function(flagged) 45 45 { 46 46 this.Flagged = flagged; 47 } 47 }; 48 48 49 49 HeaderFlags.prototype.getRecent = function() 50 50 { 51 51 return this.Recent; 52 } 52 }; 53 53 54 54 HeaderFlags.prototype.setRecent = function(recent) 55 55 { 56 56 this.Recent = recent; 57 } 57 }; 58 58 59 59 function FlagsParser(headerObj) 60 60 { 61 61 this.Header = headerObj; 62 } 62 }; 63 63 64 64 FlagsParser.prototype.parse = function() … … 100 100 return flags; 101 101 102 } 102 }; 103 103 104 104 local_messages.prototype.installGears = function (){ … … 116 116 } 117 117 else return false; 118 } 118 }; 119 119 120 120 local_messages.prototype.create_objects = function() { … … 128 128 } 129 129 catch(e){} 130 } 130 }; 131 131 132 132 local_messages.prototype.init_local_messages = function(){ //starts only database operations … … 212 212 } 213 213 214 } 214 }; 215 215 216 216 local_messages.prototype.drop_tables = function() { … … 225 225 this.dbGears.execute('drop table anexo'); 226 226 this.finalize(); 227 } 227 }; 228 228 /** 229 229 * @Depracated Use of this function in mail_sync.js … … 297 297 this.dbGears.execute("insert into mail (mail,original_id,original_folder,header,timestamp,uid_usuario,unseen,id_folder,ffrom,subject,fto,cc,body,size,answered,flagged,recent) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",[mail,original_id,original_folder,header,timestamp,login,unseen,id_folder,from,subject,to,cc,body,size,flags.getAnswered(),flags.getFlagged(),flags.getRecent()]); 298 298 var call_back = function() { 299 } 299 }; 300 300 this.store.capture(msg_info.url_export_file,call_back); 301 301 var id_mail = this.dbGears.lastInsertRowId; … … 310 310 311 311 312 } 312 }; 313 313 314 314 /** … … 324 324 var matches = id_mail.match(/(.+)(_[a-zA-Z0-9]+)/); 325 325 return matches; 326 } 326 }; 327 327 328 328 local_messages.prototype.isInt = function(x) { … … 330 330 if (isNaN(y)) return false; 331 331 return x==y && x.toString()==y.toString(); 332 } 332 }; 333 333 334 334 local_messages.prototype.get_local_mail = function(id_mail) { … … 403 403 this.finalize(); 404 404 return retorno; 405 } 405 }; 406 406 407 407 local_messages.prototype.insert_attachments = function(id_msg,anexos) { … … 411 411 this.capt_url(anexos[i]['url']); 412 412 } 413 } 413 }; 414 414 415 415 local_messages.prototype.capt_url = function (url) { … … 417 417 var call_back = function(url,success,captureId) { 418 418 //alert("Capturado: " + url); 419 } 419 }; 420 420 //alert(url); 421 421 this.store.capture(url,call_back); 422 } 422 }; 423 423 424 424 local_messages.prototype.strip_tags = function (str) { 425 425 return str.replace(/<\/?[^>]+>/gi, ''); 426 } 426 }; 427 427 428 428 local_messages.prototype.get_local_range_msgs = function(folder,msg_range_begin,emails_per_page,sort,sort_reverse,search,preview_msg_subject,preview_msg_tip) { … … 515 515 this.finalize(); 516 516 return retorno; 517 } 517 }; 518 518 519 519 local_messages.prototype.get_url_anexo = function(msg_number,pid) { … … 530 530 531 531 return retorno; 532 } 532 }; 533 533 534 534 local_messages.prototype.getInputFileFromAnexo = function (element,url) { … … 537 537 fileSubmitter.setFileInputElement(element,url); 538 538 this.finalize(); 539 } 539 }; 540 540 541 541 local_messages.prototype.finalize = function() { 542 542 this.dbGears.close(); 543 543 this.dbGears = null; 544 } 544 }; 545 545 546 546 local_messages.prototype.delete_msgs = function(msgs_number,border_ID) { … … 581 581 delete_border(border_ID,'false'); 582 582 583 } 583 }; 584 584 585 585 local_messages.prototype.get_source_msg = function(id_msg) { … … 592 592 593 593 this.finalize(); 594 } 594 }; 595 595 596 596 … … 663 663 this.finalize(); 664 664 665 } 665 }; 666 666 667 667 local_messages.prototype.set_message_flag = function(msg_number,flag) { 668 668 this.set_messages_flag(msg_number,flag); 669 } 669 }; 670 670 671 671 local_messages.prototype.get_unseen_msgs_number = function() { … … 676 676 this.finalize(); 677 677 return retorno; 678 } 678 }; 679 679 680 680 local_messages.prototype.create_folder = function(folder) { … … 693 693 this.finalize(); 694 694 return true; 695 } 695 }; 696 696 697 697 local_messages.prototype.list_local_folders = function(folder) { … … 718 718 this.finalize(); 719 719 return retorno; 720 } 720 }; 721 721 722 722 local_messages.prototype.rename_folder = function(folder,old_folder) { … … 745 745 this.finalize(); 746 746 return true; 747 } 747 }; 748 748 749 749 local_messages.prototype.remove_folder = function(folder) { … … 778 778 this.finalize(); 779 779 return false; 780 }781 782 } 780 } 781 782 }; 783 783 784 784 local_messages.prototype.move_messages = function(new_folder,msgs_number) { … … 789 789 this.dbGears.execute("update mail set id_folder="+id_folder+" where rowid in ("+msgs_number.toString()+")"); //usando statement nï¿œo tava funcionando quando tinha mais de um email... 790 790 this.finalize(); 791 } 791 }; 792 792 793 793 local_messages.prototype.search = function(folders,sFilter) { … … 878 878 return retorno==""?false:retorno; 879 879 880 } 880 }; 881 881 882 882 local_messages.prototype.aux_convert_size = function(size) { 883 var tmp = Math.floor(size/1024); 884 if(tmp >= 1){ 885 return tmp + " kb"; 886 }else{ 887 return size + " b"; 888 } 889 890 } 883 return borkb(size); 884 }; 891 885 892 886 local_messages.prototype.aux_convert_filter_field = function(filter,date) { … … 938 932 return "recent = 0"; 939 933 940 } 934 }; 941 935 942 936 local_messages.prototype.has_local_mails = function() { … … 950 944 this.finalize(); 951 945 return retorno; 952 } 946 }; 953 947 954 948 //Por Bruno Costa(bruno.vieira-costa@serpro.gov.br - Essa funᅵᅵo ï¿œ um AJAX simples que serve apenas para pegar o fonte de uma msg local (no formato RFC 822). … … 984 978 } 985 979 } 986 } 980 }; 987 981 988 982 AJAX.open('get', url, false); … … 1038 1032 params="&folder="+new_folder+"&source="+source+"×tamp="+timestamp; 1039 1033 cExecute ("expressoMail1_2.imap_functions.unarchive_mail&", handler_unarchive, params); 1040 } 1034 }; 1041 1035 1042 1036 local_messages.prototype.get_msg_date = function (original_id, is_local){ … … 1069 1063 this.finalize(); 1070 1064 return ret; 1071 } 1065 }; 1072 1066 1073 1067 … … 1084 1078 } 1085 1079 cExecute("expressoMail1_2.imap_functions.download_all_local_attachments",handler_source,"source="+source); 1086 } 1080 }; 1087 1081 1088 1082 /*************************************************************************/ … … 1125 1119 } 1126 1120 return true; 1127 } 1121 }; 1128 1122 1129 1123 local_messages.prototype.get_all_local_folder_messages= function(folder_name){ … … 1167 1161 1168 1162 1169 } 1163 }; 1170 1164 1171 1165 … … 1186 1180 return true; 1187 1181 1188 } 1182 }; 1189 1183 local_messages.prototype.update_offline = function(redirect) { 1190 1184 this.init_local_messages(); … … 1203 1197 } 1204 1198 this.finalize(); 1205 } 1199 }; 1206 1200 1207 1201 local_messages.prototype.uninstall_offline = function() { … … 1221 1215 //this.dbGears.execute('drop table attachments_queue'); 1222 1216 this.finalize(); 1223 } 1217 }; 1224 1218 1225 1219 local_messages.prototype.get_folders_to_sync = function() {//Precisa ter visibilidade ao array de linguagens. … … 1242 1236 this.finalize(); 1243 1237 return retorno; 1244 } 1238 }; 1245 1239 1246 1240 local_messages.prototype.install_offline = function(urlOffline,urlIcone,uid_usuario,login,pass,redirect) { … … 1325 1319 1326 1320 this.finalize(); 1327 } 1321 }; 1328 1322 1329 1323 /** … … 1343 1337 this.finalize(); 1344 1338 return users; 1345 } 1339 }; 1346 1340 1347 1341 local_messages.prototype.set_as_logged = function(uid_usuario,pass,bypass) { … … 1360 1354 this.finalize(); 1361 1355 return true; 1362 } 1356 }; 1363 1357 1364 1358 local_messages.prototype.unset_as_logged = function() { … … 1366 1360 this.dbGears.execute("update user set logged=null"); //Logoff in everybody 1367 1361 this.finalize(); 1368 } 1362 }; 1369 1363 1370 1364 local_messages.prototype.user_logged = function() { … … 1380 1374 this.finalize(); 1381 1375 return user_logged; 1382 } 1376 }; 1383 1377 1384 1378 local_messages.prototype.send_to_queue = function (form) { … … 1430 1424 this.finalize(); 1431 1425 return true; 1432 } 1426 }; 1433 1427 1434 1428 local_messages.prototype.send_attach_to_queue = function(id_queue,form) { … … 1448 1442 } 1449 1443 } 1450 } 1444 }; 1451 1445 1452 1446 … … 1459 1453 this.finalize(); 1460 1454 return to_return; 1461 } 1455 }; 1462 1456 1463 1457 local_messages.prototype.set_problem_on_sent = function(rowid_message,msg) { … … 1466 1460 this.dbGears.execute("insert into sent_problems (id_queue,message) values (?,?)"[rowid_message,msg]); 1467 1461 this.finalize(); 1468 } 1462 }; 1469 1463 1470 1464 local_messages.prototype.set_as_sent = function(rowid_message) { … … 1472 1466 this.dbGears.execute("update queue set sent = 1 where rowid=?",[rowid_message]); 1473 1467 this.finalize(); 1474 } 1468 }; 1475 1469 1476 1470 local_messages.prototype.get_form_msg_to_send = function() { … … 1592 1586 this.finalize(); 1593 1587 return form; 1594 } 1588 }; 1595 1589 1596 1590 var expresso_local_messages; -
trunk/expressoMail1_2/js/modal/modal.js
r2521 r2563 14 14 catch(e){ 15 15 alert(e); 16 } 16 }; 17 17 var objBody = document.getElementsByTagName("body").item(0); 18 18 … … 135 135 } 136 136 137 arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 137 arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight); 138 138 return arrayPageSize; 139 139 } … … 151 151 } 152 152 153 arrayPageScroll = new Array('',yScroll) 153 arrayPageScroll = new Array('',yScroll); 154 154 return arrayPageScroll; 155 155 } -
trunk/phpgwapi/js/dftree/dftree.js
r2547 r2563 276 276 var plusEventHandler = function(){ 277 277 _this.changeState(); 278 } 278 }; 279 279 280 280 var captionEventHandler = function(){ 281 281 eval(captionOnClickEvent); 282 } 282 }; 283 283 284 284 /* if (this.myTree.followCookies)
Note: See TracChangeset
for help on using the changeset viewer.