Changeset 6447
- Timestamp:
- 06/08/12 10:36:20 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/draw_api.js
r6393 r6447 3880 3880 3881 3881 var el_shared_users = Element("el_shared_users"); 3882 /* Recupera a pasta atual do usuário (selecionada) */ 3883 var user_shared = folder.split(cyrus_delimiter); 3884 /* Verifica se está nas próprias pastas */ 3885 if(user_shared[0] == "INBOX"){ 3886 user_shared = User.me.uid; 3887 }else{ 3888 user_shared = user_shared[1]; 3889 } 3882 3890 // The element was loaded and populated...so return. 3883 3891 if(el_shared_users){ … … 3890 3898 _option.text = el_shared_users.options[x].text; 3891 3899 _option.value = el_shared_users.options[x].value; 3900 /* Faz o tratamento do nome da pasta para fazer a verificação e selecionar o valor no select */ 3901 var str_begin_name = _option.text.indexOf('<') + 1; 3902 var str_end_name = _option.text.indexOf('@'); 3903 var user_selected_name = _option.text.substring(str_begin_name, str_end_name); 3904 /* Verifica se é o usuário da pasta selecionada */ 3905 if(user_selected_name == user_shared){ 3906 _option.selected = 'selected'; 3907 } 3892 3908 sel_from.options[sel_from.options.length] = _option ; 3893 3909 } … … 3915 3931 if(data.length > 0) { 3916 3932 tr1_1.style.display = ''; 3917 3933 var mycn = typeof(data.myname != 'undefined') ? data.myname : ''; 3918 3934 var _option = document.createElement("OPTION"); 3919 3935 _option.text = '"'+mycn+'" <'+Element("user_email").value+'>'; 3920 3936 _option.value = mycn+";"+Element("user_email").value; 3937 /* Verifica se é o usuário logado */ 3938 if(user_shared == User.me.uid) 3939 _option.selected = 'selected'; 3921 3940 sel_from.options[sel_from.options.length] = _option; 3922 3941 3923 3942 var options = ''; 3924 var cn = ''; 3925 3943 var cn = ''; 3926 3944 for (var x = 0; x < data.length; x++) { 3927 3945 cn = typeof(data[x].cn[0] != 'undefined') ? data[x].cn[0] : ''; … … 3929 3947 _option.text = '"'+cn+'" <'+data[x].mail[0]+'>'; 3930 3948 _option.value = cn+';'+data[x].mail[0]+';'+data[x].save_shared[0]+';'+data[x].uid[0]; 3949 /* Faz o tratamento do nome da pasta para fazer a verificação e selecionar o valor no select */ 3950 var str_begin_name = _option.text.indexOf('<') + 1; 3951 var str_end_name = _option.text.indexOf('@'); 3952 var user_selected_name = _option.text.substring(str_begin_name, str_end_name); 3953 /* Verifica se é o usuário da pasta selecionada */ 3954 if(user_selected_name == user_shared){ 3955 _option.selected = 'selected'; 3956 } 3931 3957 sel_from.options[sel_from.options.length] = _option ; 3932 3958 }
Note: See TracChangeset
for help on using the changeset viewer.