mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
* Mail: Fix mail compose attachment is not shown while it's on upload progress for the first time
This commit is contained in:
parent
62e41d434d
commit
311a2efe53
@ -3049,13 +3049,24 @@ app.classes.mail = AppJS.extend(
|
||||
if (_file_count && !jQuery.isEmptyObject(_event.data.getValue()))
|
||||
{
|
||||
var widget = _event.data;
|
||||
// var request = new egw_json_request('mail_ui::ajax_importMessage', ['upload', widget.getValue(), _path], this);
|
||||
// widget.set_value('');
|
||||
// request.sendRequest();//false, this._upload_callback, this);
|
||||
this.et2_obj.submit();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Visible attachment box in compose dialog as soon as the file starts to upload
|
||||
*/
|
||||
composeUploadStart: function ()
|
||||
{
|
||||
var boxAttachment = this.et2.getWidgetById('mailUploadProgress');
|
||||
if (boxAttachment)
|
||||
{
|
||||
var groupbox = boxAttachment.getParent();
|
||||
if (groupbox) groupbox.set_disabled(false);
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
/**
|
||||
* Upload for import (VFS)
|
||||
*
|
||||
|
@ -14,7 +14,7 @@
|
||||
</description>
|
||||
<description class="email-button-group file">
|
||||
<vfs-select class="$cont[vfsNotAvailable] compose_egw_icons" id="selectFromVFSForCompose" onchange="app.mail.vfsUploadForCompose" button_caption=""/>
|
||||
<file class="mail-compose_fileselector" statustext="Select file to attach to message" multiple='true' progress='mailUploadProgress' onFinish="app.mail.uploadForCompose" id="uploadForCompose" drop_target ="mail-compose"/>
|
||||
<file class="mail-compose_fileselector" statustext="Select file to attach to message" multiple='true' progress='mailUploadProgress' onFinish="app.mail.uploadForCompose" onStart="app.mail.composeUploadStart" id="uploadForCompose" drop_target ="mail-compose"/>
|
||||
</description>
|
||||
<description class="email-button-group egw">
|
||||
<description class="$cont[noSaveAsAvailable]" value="Save:"/>
|
||||
|
Loading…
Reference in New Issue
Block a user