Changeset 4570 in subversion


Ignore:
Timestamp:
Feb 25, 2011 4:16:05 AM (2 years ago)
Author:
alec
Message:
  • Fix attachments uploading, broken with devel-addressbook branch merge
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/js/app.js

    r4563 r4570  
    31913191    // create hidden iframe and post upload form 
    31923192    if (send) { 
    3193       this.async_upload_form(form, 'upload', function(e) { 
     3193      var frame_name = this.async_upload_form(form, 'upload', function(e) { 
    31943194        var d, content = ''; 
    31953195        try { 
     
    32003200          } 
    32013201          content = d.childNodes[0].innerHTML; 
    3202         } catch (e) {} 
     3202        } catch (err) {} 
    32033203 
    32043204        if (!content.match(/add2attachment/) && (!bw.opera || (rcmail.env.uploadframe && rcmail.env.uploadframe == e.data.ts))) { 
     
    32133213 
    32143214      // 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 
    32163218      if (this.env.loadingicon) 
    32173219        content = '<img src="'+this.env.loadingicon+'" alt="" />'+content; 
     
    53745376  this.async_upload_form = function(form, action, onload) 
    53755377  { 
    5376     var ts = new Date().getTime(); 
    5377     var frame_name = 'rcmupload'+ts; 
     5378    var ts = new Date().getTime(), 
     5379      frame_name = 'rcmupload'+ts; 
    53785380 
    53795381    // have to do it this way for IE 
     
    54005402    form.setAttribute('enctype', 'multipart/form-data'); 
    54015403    form.submit(); 
     5404 
     5405    return frame_name; 
    54025406  }; 
    54035407   
Note: See TracChangeset for help on using the changeset viewer.