[IMP] mail: message error when the user must wait his attachment uploading
bzr revid: chm@openerp.com-20121207092806-w20k150gnvs4hufj
This commit is contained in:
parent
f8c206b1b8
commit
cf6b95e613
|
@ -547,7 +547,7 @@ openerp.mail = function (session) {
|
|||
/* return true if all file are complete else return false and make an alert */
|
||||
do_check_attachment_upload: function () {
|
||||
if (_.find(this.attachment_ids, function (file) {return file.upload;})) {
|
||||
this.do_warn(session.web._t('Attachment error :'), session.web._t('Please, wait while the file is uploading.'));
|
||||
this.do_warn(session.web.qweb.render('mail.error_upload'), session.web.qweb.render('mail.error_upload_please_wait'));
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
|
|
|
@ -183,6 +183,7 @@
|
|||
error message for uploading
|
||||
-->
|
||||
<t t-name="mail.error_upload">Uploading error</t>
|
||||
<t t-name="mail.error_upload_please_wait">Please, wait while the file is uploading.</t>
|
||||
|
||||
<!--
|
||||
record_thread main template
|
||||
|
|
Loading…
Reference in New Issue