Changeset 4570 in subversion
- Timestamp:
- Feb 25, 2011 4:16:05 AM (2 years ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/js/app.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/js/app.js
r4563 r4570 3191 3191 // create hidden iframe and post upload form 3192 3192 if (send) { 3193 this.async_upload_form(form, 'upload', function(e) {3193 var frame_name = this.async_upload_form(form, 'upload', function(e) { 3194 3194 var d, content = ''; 3195 3195 try { … … 3200 3200 } 3201 3201 content = d.childNodes[0].innerHTML; 3202 } catch (e ) {}3202 } catch (err) {} 3203 3203 3204 3204 if (!content.match(/add2attachment/) && (!bw.opera || (rcmail.env.uploadframe && rcmail.env.uploadframe == e.data.ts))) { … … 3213 3213 3214 3214 // display upload indicator and cancel button 3215 var content = this.get_label('uploading'); 3215 var content = this.get_label('uploading'), 3216 ts = frame_name.replace(/^rcmupload/, ''); 3217 3216 3218 if (this.env.loadingicon) 3217 3219 content = '<img src="'+this.env.loadingicon+'" alt="" />'+content; … … 5374 5376 this.async_upload_form = function(form, action, onload) 5375 5377 { 5376 var ts = new Date().getTime() ;5377 varframe_name = 'rcmupload'+ts;5378 var ts = new Date().getTime(), 5379 frame_name = 'rcmupload'+ts; 5378 5380 5379 5381 // have to do it this way for IE … … 5400 5402 form.setAttribute('enctype', 'multipart/form-data'); 5401 5403 form.submit(); 5404 5405 return frame_name; 5402 5406 }; 5403 5407
Note: See TracChangeset
for help on using the changeset viewer.
