Fix save as draft confirmation message does not disappear after a while

This commit is contained in:
Hadi Nategh 2014-09-22 12:55:04 +00:00
parent 62cacc922d
commit 055c9f8966

View File

@ -3216,17 +3216,17 @@ app.classes.mail = AppJS.extend(
{ {
opener.egw_refresh(_responseData.message,'mail', prevDraftedId, 'delete'); opener.egw_refresh(_responseData.message,'mail', prevDraftedId, 'delete');
} }
this.egw.refresh(_responseData.message,'mail',_responseData.draftedId,'add'); this.egw.refresh(_responseData.message,'mail',_responseData.draftedId);
switch (_action) switch (_action)
{ {
case 'button[saveAsDraftAndPrint]': case 'button[saveAsDraftAndPrint]':
this.mail_compose_print('mail::'+_responseData.draftedId); this.mail_compose_print('mail::'+_responseData.draftedId);
this.egw.message(_responseData.message, 'add'); this.egw.message(_responseData.message);
break; break;
case 'autosaving': case 'autosaving':
//Any sort of thing if it's an autosaving action //Any sort of thing if it's an autosaving action
default: default:
this.egw.message(_responseData.message, 'add'); this.egw.message(_responseData.message);
} }
} }
} }