Changeset 7361 for branches/2.4


Ignore:
Timestamp:
10/08/12 09:55:17 (11 years ago)
Author:
eduardow
Message:

Ticket #3141 - Falha ao nao informar o compartilhamento consigo mesmo.

Location:
branches/2.4/expressoMail1_2
Files:
2 edited

Legend:

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

    r7228 r7361  
    289289                        if (select_available_users.options[i].selected) 
    290290                        { 
    291                                 if(document.all) 
    292                                 { 
    293                                         if ( (select_users.innerHTML.indexOf('value='+select_available_users.options[i].value)) == '-1' ) 
     291                                if(select_available_users.options[i].value == User.me.uid) {  
     292                    $.Zebra_Dialog(get_lang('Cant share with yourself.'), {  
     293                    'type':     'warning',  
     294                    'overlay_opacity': '0.5',  
     295                    'buttons':  ['Fechar']  
     296                });                           
     297            }else{  
     298                    if(document.all) 
    294299                                        { 
    295                                                 new_options +=  '<option value=' 
    296                                                                         + select_available_users.options[i].value 
    297                                                                         + '>' 
    298                                                                         + select_available_users.options[i].text 
    299                                                                         + '</option>'; 
     300                                                if ( (select_users.innerHTML.indexOf('value='+select_available_users.options[i].value)) == '-1' )  
     301                        {  
     302                                new_options +=  '<option value='  
     303                                                        + select_available_users.options[i].value  
     304                                                        + '>'  
     305                                                        + select_available_users.options[i].text  
     306                                                        + '</option>';  
     307                        } 
    300308                                        } 
    301                                 } 
    302309                                else 
    303                                 { 
    304                                         if ( (select_users.innerHTML.indexOf('value="'+select_available_users.options[i].value+'"')) == '-1' ) 
    305310                                        { 
    306                                                 new_options +=  '<option value=' 
    307                                                                         + select_available_users.options[i].value 
    308                                                                         + '>' 
    309                                                                         + select_available_users.options[i].text 
    310                                                                         + '</option>'; 
     311                                                 if ( (select_users.innerHTML.indexOf('value="'+select_available_users.options[i].value+'"')) == '-1' )  
     312                        {  
     313                                new_options +=  '<option value='  
     314                                                        + select_available_users.options[i].value  
     315                                                        + '>'  
     316                                                        + select_available_users.options[i].text  
     317                                                        + '</option>';  
     318                        }  
    311319                                        } 
    312320                                } 
  • branches/2.4/expressoMail1_2/setup/phpgw_pt-br.lang

    r7281 r7361  
    937937One of his messages can not be marked as read, because it contains a read confirmation. expressoMail1_2 pt-br   Uma de suas mensagens não pode ser marcada como lida, pois contém uma confirmação de leitura. 
    938938of its messages could not be marked as read, because it contains a read confirmation.   expressoMail1_2 pt-br   de suas mensagens não puderam ser marcadas como lida, pois contém uma confirmação de leitura. 
     939Cant share with yourself.       expressoMail1_2 pt-br   Não é possível compartilhar com você mesmo. 
Note: See TracChangeset for help on using the changeset viewer.