Changeset 5162 for branches/2.3
- Timestamp:
- 11/10/11 08:19:35 (12 years ago)
- Location:
- branches/2.3/expressoMail1_2/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/expressoMail1_2/js/common_functions.js
r5103 r5162 222 222 } 223 223 div_attachment.innerHTML="<iframe style='display:none;width:0;height:0' name='attachment' src='"+url+"'></iframe>"; 224 window.onbeforeunload = function(){return unloadMess();} 224 225 } 225 226 … … 239 240 240 241 div_attachment.innerHTML="<iframe style='display:none;width:0;height:0' name='attachment' src='inc/gotodownload.php?msg_folder="+msg_folder+"&msg_number="+msg_number+"&idx_file="+idx_file+"&msg_part="+msg_part+params+"'></iframe>"; 242 window.onbeforeunload = function(){return unloadMess();} 241 243 } 242 244 … … 315 317 var link_attachment = document.createElement("A"); 316 318 link_attachment.setAttribute("href", link); 317 319 link_attachment.onclick = function (){window.onbeforeunload = "";}; 318 320 link_attachment.innerHTML = file_name; 319 321 divFile.appendChild(link_attachment); -
branches/2.3/expressoMail1_2/js/main.js
r5116 r5162 1313 1313 var link_attachment = document.createElement("A"); 1314 1314 link_attachment.setAttribute("href", attachments[i].href); 1315 link_attachment.onclick = function (){window.onbeforeunload = "";}; 1315 1316 link_attachment.innerHTML = attachments[i].firstChild.nodeValue + '<br/>'; 1316 1317 … … 1458 1459 var link_attachment = document.createElement("A"); 1459 1460 link_attachment.setAttribute("href", attachments[i].href); 1461 link_attachment.onclick = function (){window.onbeforeunload = "";}; 1460 1462 if(attachments[i].innerHTML == "") 1461 1463 continue; … … 2024 2026 2025 2027 link_attachment.setAttribute("href", "javascript:download_attachments("+href+")"); 2026 2028 link_attachment.onclick = function (){window.onbeforeunload = "";}; 2027 2029 var a_tmp = href.split(','); 2028 2030 a_tmp[2] = fileName;
Note: See TracChangeset
for help on using the changeset viewer.