|
|
@ -959,7 +959,7 @@ function rcube_webmail()
|
|
|
|
case 'send-attachment':
|
|
|
|
case 'send-attachment':
|
|
|
|
// Reset the auto-save timer
|
|
|
|
// Reset the auto-save timer
|
|
|
|
self.clearTimeout(this.save_timer);
|
|
|
|
self.clearTimeout(this.save_timer);
|
|
|
|
|
|
|
|
|
|
|
|
this.upload_file(props || this.gui_objects.uploadform);
|
|
|
|
this.upload_file(props || this.gui_objects.uploadform);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
@ -3443,8 +3443,9 @@ function rcube_webmail()
|
|
|
|
|
|
|
|
|
|
|
|
if (this.env.loadingicon)
|
|
|
|
if (this.env.loadingicon)
|
|
|
|
content = '<img src="'+this.env.loadingicon+'" alt="" class="uploading" />'+content;
|
|
|
|
content = '<img src="'+this.env.loadingicon+'" alt="" class="uploading" />'+content;
|
|
|
|
if (this.env.cancelicon)
|
|
|
|
content = '<a title="'+this.get_label('cancel')+'" onclick="return rcmail.cancel_attachment_upload(\''+ts+'\', \''+frame_name+'\');" href="#cancelupload" class="cancelupload">'
|
|
|
|
content = '<a title="'+this.get_label('cancel')+'" onclick="return rcmail.cancel_attachment_upload(\''+ts+'\', \''+frame_name+'\');" href="#cancelupload" class="cancelupload"><img src="'+this.env.cancelicon+'" alt="" /></a>'+content;
|
|
|
|
+ (this.env.cancelicon ? '<img src="'+this.env.cancelicon+'" alt="" />' : this.get_label('cancel')) + '</a>' + content;
|
|
|
|
|
|
|
|
|
|
|
|
this.add2attachment_list(ts, { name:'', html:content, classname:'uploading', complete:false });
|
|
|
|
this.add2attachment_list(ts, { name:'', html:content, classname:'uploading', complete:false });
|
|
|
|
|
|
|
|
|
|
|
|
// upload progress support
|
|
|
|
// upload progress support
|
|
|
|