Changeset 1637 for trunk/expressoMail1_2/js/draw_api.js
- Timestamp:
- 11/13/09 11:11:08 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/draw_api.js
r1595 r1637 1746 1746 var blocked = false; 1747 1747 var forbidden = true; 1748 if (preferences.notification_domains != undefined && preferences.notification_domains != "") 1748 1749 if (preferences.notification_domains != null && typeof(preferences.notification_domains) != 'undefined') 1750 { 1749 1751 domains = preferences.notification_domains.split(','); 1750 for(var j = 0; j < imgTag.length; j++) 1751 { 1752 for (var i = 0; i < domains.length; i++) 1752 for(var j = 0; j < imgTag.length; j++) 1753 1753 { 1754 imgSource = imgTag[j].match(/=['"](http:\/\/)+[^'"\/]*/); 1755 if (imgSource && imgSource.toString().substr(5).match(domains[i])) 1756 forbidden = false; 1757 } 1758 if (forbidden) 1754 for (var i = 0; i < domains.length; i++) 1755 { 1756 imgSource = imgTag[j].match(/=['"](http:\/\/)+[^'"\/]*/); 1757 if (imgSource && imgSource.toString().substr(5).match(domains[i])) 1758 forbidden = false; 1759 } 1760 if (forbidden) 1761 { 1762 newBody = newBody.replace(imgTag[j],"<img src='templates/"+template+"/images/forbidden.jpg'>"); 1763 blocked=true; 1764 } 1765 } 1766 if (blocked) 1759 1767 { 1760 newBody = newBody.replace(imgTag[j],"<img src='templates/"+template+"/images/forbidden.jpg'>"); 1761 blocked=true; 1762 } 1763 } 1764 if (blocked) 1765 { 1766 var showImgLink = document.createElement('DIV'); 1767 showImgLink.id="show_img_link"; 1768 showImgLink.onclick = function(){show_msg_img(info_msg.msg_number,info_msg.msg_folder)}; 1769 showImgLink.className="show_img_link"; 1770 showImgLink.innerHTML = get_lang("Show images from")+": "+info_msg.from.email; 1771 td.appendChild(showImgLink); 1768 var showImgLink = document.createElement('DIV'); 1769 showImgLink.id="show_img_link"; 1770 showImgLink.onclick = function(){show_msg_img(info_msg.msg_number,info_msg.msg_folder)}; 1771 showImgLink.className="show_img_link"; 1772 showImgLink.innerHTML = get_lang("Show images from")+": "+info_msg.from.email; 1773 td.appendChild(showImgLink); 1774 } 1772 1775 } 1773 1776 }
Note: See TracChangeset
for help on using the changeset viewer.