Changeset 4926 for branches/2.3/expressoMail1_2/js
- Timestamp:
- 08/15/11 17:51:16 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/expressoMail1_2/js/main.js
r4923 r4926 1255 1255 link_attachment.setAttribute("href", attachments[i].href); 1256 1256 link_attachment.innerHTML = attachments[i].firstChild.nodeValue + '<br/>'; 1257 // var a = attachments[i].firstChild.nodeValue; 1258 // var b = a.split("("); 1259 // b = b[0]; 1260 // var c = trim(b); 1257 1261 if (data.is_local_message) {//Local messages 1258 1262 document.getElementById("is_local_forward"+new_border_ID).value = "1"; … … 1265 1269 } 1266 1270 else { 1267 var tempNomeArquivo = tmp.split("&newfilename=");1268 var nomeArquivo = t empNomeArquivo[tempNomeArquivo.length - 1];1271 var tempNomeArquivo = attachments[i].firstChild.nodeValue.split("("); 1272 var nomeArquivo = trim(tempNomeArquivo[0]); 1269 1273 } 1270 1274 1271 1275 if(nomeArquivo.match(/\.[a-z]{1,3}\.php$/i)!=null) //Anexos no gears podem vir com .php depois de sua extensão. tenho que tirar o .php para ficar o nome real do arquivo. 1272 1276 nomeArquivo = nomeArquivo.substring(0, nomeArquivo.length - 4);
Note: See TracChangeset
for help on using the changeset viewer.