Changeset 6644


Ignore:
Timestamp:
06/26/12 16:11:26 (12 years ago)
Author:
eduardow
Message:

Ticket #2899 - Problema ao criar um evento de uma mensagem.

Location:
branches/2.4
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/expressoMail1_2/js/draw_api.js

    r6636 r6644  
    30343034                                        location: '', 
    30353035                                        attendee: $.map(emails, function( mail ){                        
    3036                                                  
     3036                                                var contact = false; 
    30373037                                                var decoded =  Encoder.htmlDecode(mail); 
    30383038                                                var newAttendeeName = ""; 
    30393039 
    3040                                                 var user = DataLayer.get('user', ["=", "mail", decoded.match(/<([^<]*)>[\s]*$/) ? decoded.match(/<([^<]*)>[\s]*$/)[1].toLowerCase() : decoded], true); 
     3040                                                var name = decoded.match(/"([^"]*)"/) ? decoded.match(/"([^"]*)"/)[1] : '';  
     3041                                                var mail = decoded.match(/<([^<]*)>[\s]*$/) ? decoded.match(/<([^<]*)>[\s]*$/)[1].toLowerCase() : decoded;   
     3042  
     3043  
     3044                                                var user = DataLayer.get('user', ["=", "mail", mail], true); 
    30413045                                                 
    30423046                                                if( $.type(user) == "array") 
    30433047                                                    user = user[0];  
    30443048                  
    3045                                                 if(typeof(user) != 'object')  
     3049                                                if(user != ''){  
     3050                                                    //user = {name : name , mail : mail};  
     3051                                                    if(User.me.mail == user.mail)  
     3052                                                            return(null);  
     3053                                                    user.isExternal = (!!user && !(!!user.isExternal)) ? 0 : 1;  
     3054 
     3055                                                    return  DataLayer.merge({  
     3056                                                            name: user.name,  
     3057                                                            mail: user.mail,  
     3058                                                            acl:  'r',  
     3059                                                            delegatedFrom: '0',  
     3060                                                            status: '4',  
     3061                                                            isExternal: user.isExternal  
     3062                                                    }, !!user.id ? {id : DataLayer.put('participant', {user: user.id, isExternal: user.isExternal})} : {id: DataLayer.put('participant', {user: user})});   
     3063                                                }else if(mail.match(/[\w-]+(\.[\w-]+)*@(([A-Za-z\d][A-Za-z\d-]{0,61}[A-Za-z\d]\.)+[A-Za-z]{2,6}|\[\d{1,3}(\.\d{1,3}){3}\])/)){  
     3064                                                      
     3065                                                    var userId = DataLayer.put('user', {  
     3066                                                        name: name,   
     3067                                                        mail: mail,   
     3068                                                        isExternal: '1'  
     3069                                                    });  
     3070                                                    var newAttendeeId = DataLayer.put('participant', {  
     3071                                                        user: userId,   
     3072                                                        isExternal: '1'  
     3073                                                    });  
     3074 
     3075                                                    return  {  
     3076                                                            id: newAttendeeId,  
     3077                                                            name: name,  
     3078                                                            mail: mail,  
     3079                                                            acl:  'r',  
     3080                                                            delegatedFrom: '0',  
     3081                                                            status: '4',  
     3082                                                            isExternal: '1'  
     3083                                                    };  
     3084                                                      
     3085                                                }else  
    30463086                                                    return (null); 
    3047  
    3048                                                 if(!user) 
    3049                                                         user = {name : decoded.match(/"([^"]*)"/)[1] , mail : decoded.match(/[\w-]+(\.[\w-]+)*@(([A-Za-z\d][A-Za-z\d-]{0,61}[A-Za-z\d]\.)+[A-Za-z]{2,6}|\[\d{1,3}(\.\d{1,3}){3}\])/)[1]}; 
    3050  
    3051                                                 if(User.me.mail == user.mail) 
    3052                                                         return(null); 
    3053                                                          
    3054                                                 user.isExternal = (!!user && !(!!user.isExternal)) ? 0 : 1; 
    3055  
    3056                                                 return  DataLayer.merge({ 
    3057                                                         name: user.name, 
    3058                                                         mail: user.mail, 
    3059                                                         acl:  'r', 
    3060                                                         delegatedFrom: '0', 
    3061                                                         status: '4' 
    3062                                                 }, !!user.id ? {id : DataLayer.put('participant', {user: user.id, isExternal: user.isExternal})} : {id: DataLayer.put('participant', {user: user})});  
    3063                                  
    30643087                                        })       
    30653088                                         
  • branches/2.4/expressoMail1_2/templates/default/main.css

    r6251 r6644  
    10461046} 
    10471047 
     1048div.new-event-win.active div.button-files-upload{  
     1049    margin: 15px 0 0 0;  
     1050}  
     1051  
     1052div.new-event-win.active div.files-list{  
     1053    margin: 45px 0 0 0;  
     1054}  
     1055                  
    10481056/*#divAppbox 
    10491057{ background: #fff url( ../images/bgBlockContent.jpg ) repeat-x; border-color: #9c9c9c; } 
  • branches/2.4/prototype/config/user.ini

    r5804 r6644  
    1515insertOwnerLink = modules/calendar/interceptors/DBMapping.php 
    1616 
    17 [OpenLDAP.before.create] 
    18 encodeURIUser = modules/calendar/interceptors/DBMapping.php 
    19 encodeCreateConcept = modules/calendar/interceptors/DBMapping.php 
     17;[OpenLDAP.before.create] 
     18;encodeURIUser = modules/calendar/interceptors/DBMapping.php 
     19;encodeCreateConcept = modules/calendar/interceptors/DBMapping.php 
    2020 
    2121[OpenLDAP.before.find] 
Note: See TracChangeset for help on using the changeset viewer.