- Timestamp:
- 02/21/13 09:11:22 (11 years ago)
- Location:
- sandbox/2.5.1-expresso1/prototype/modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.5.1-expresso1/prototype/modules/attach_message/attach_message.js
r7900 r7901 700 700 } 701 701 var search_imap_messages = function(param, folder){ 702 var filters = [ 703 [ 704 'from', 705 '*', 706 param 707 ], 708 [ 709 'OR', 710 'to', 711 '*', 712 param 713 ], 714 [ 715 'OR', 716 'subject', 717 '*', 718 param 719 ] 720 ]; 721 722 var data = DataLayer.get( 'message', { filter: filters, criteria: { properties: { context: { folder: folder } } } }, true ); 723 var tmp = [DataLayer.get( 'message', {filter: [ "msgNumber", "IN", data ], criteria: { properties: { context: { folder: folder } } } })]; 724 702 725 msgs = []; 703 704 // Obrigatório o retorno do array com mensagens... 726 console.log(tmp); 727 $.each(tmp, function(i, msg){ 728 flag = msg['flag']; 729 id = msg['msg_number']; 730 var message = {}; 731 732 message['msg_number'] = id; 733 message['flags'] = flag; 734 message['from.name'] = msg['from']; 735 message['subject'] = msg['subject']; 736 message['timestamp'] = msg['timestamp']; 737 message['size'] = msg['size']; 738 message['id'] = id; 739 msgs.push( message ); 740 741 }); 742 743 console.log(msgs); 744 705 745 return msgs; 706 746 } -
sandbox/2.5.1-expresso1/prototype/modules/mail/templates/attachment_search.ejs
r7895 r7901 2 2 <fieldset class="attach-message-search-field ui-corner-all" style="border: 0;margin: -10px 0 0 0;padding: 1px;height: 18px;position: relative;top: 50%;"> 3 3 <span class="ui-icon ui-icon-search" style="position: absolute;right: 6px;top: 10%;"></span> 4 <input class="attach-message-search-input" type="text" style="border-radius: 5px;border-right-color: white;border-right: 20px solid white;border-bottom: 1px solid white;border-top: 1px solid white;"> 4 <input class="attach-message-search-checkbox" type="checkbox" style="position: absolute;right: 20px;top: 10%;"> 5 <input class="attach-message-search-input" type="text" style="border-radius: 5px;border-right-color: white;border-right: 35px solid white;border-bottom: 1px solid white;border-top: 1px solid white;"> 5 6 </fieldset> 6 7 </div>
Note: See TracChangeset
for help on using the changeset viewer.