Changeset 87a8685 in github
- Timestamp:
- May 22, 2010 2:24:33 PM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 6f4e7db
- Parents:
- 0b7f3a8
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/js/app.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r0b7f3a8 r87a8685 2 2 =========================== 3 3 4 - Fix wrong message on file upload error (#1486725) 4 5 - Add support for data URI scheme [RFC2397] (#1486740) 5 6 - Added 'actionbefore', 'actionafter', 'responsebefore', 'responseafter' events -
program/js/app.js
r2bb1f63 r87a8685 3104 3104 3105 3105 // handle upload errors, parsing iframe content in onload 3106 var fr = document.getElementsByName(frame_name)[0]; 3107 $(fr).bind('load', {ts:ts}, function(e) { 3108 var content = ''; 3106 $(frame_name).bind('load', {ts:ts}, function(e) { 3107 var d, content = ''; 3109 3108 try { 3110 3109 if (this.contentDocument) { 3111 vard = this.contentDocument;3110 d = this.contentDocument; 3112 3111 } else if (this.contentWindow) { 3113 vard = this.contentWindow.document;3112 d = this.contentWindow.document; 3114 3113 } 3115 3114 content = d.childNodes[0].innerHTML; 3116 3115 } catch (e) {} 3117 3116 3118 if (!String(content).match(/add2attachment/) && (!bw.opera || (rcmail.env.uploadframe && rcmail.env.uploadframe == e.data.ts))) { 3119 rcmail.display_message(rcmail.get_label('fileuploaderror'), 'error'); 3117 if (!content.match(/add2attachment/) && (!bw.opera || (rcmail.env.uploadframe && rcmail.env.uploadframe == e.data.ts))) { 3118 if (!content.match(/display_message/)) 3119 rcmail.display_message(rcmail.get_label('fileuploaderror'), 'error'); 3120 3120 rcmail.remove_from_attachment_list(e.data.ts); 3121 3121 }
Note: See TracChangeset
for help on using the changeset viewer.
