mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-17 05:23:13 +01:00
Implement draft autosaving for mail compose.
- Auto saving interval is every 2 minutes.
This commit is contained in:
parent
6cd5e61979
commit
62cacc922d
@ -191,7 +191,12 @@ app.classes.mail = AppJS.extend(
|
|||||||
var that = this;
|
var that = this;
|
||||||
this.mail_isMainWindow = false;
|
this.mail_isMainWindow = false;
|
||||||
this.compose_fieldExpander_hide();
|
this.compose_fieldExpander_hide();
|
||||||
|
|
||||||
|
// Set autosaving interval to 2 minutes for compose message
|
||||||
|
window.setInterval(function (){
|
||||||
|
that.saveAsDraft(null,that.et2.getWidgetById('button[saveAsDraft]'),'autosaving');
|
||||||
|
}, 120000);
|
||||||
|
|
||||||
/* Control focus actions on subject to handle expanders properly.*/
|
/* Control focus actions on subject to handle expanders properly.*/
|
||||||
jQuery("#mail-compose_subject").on({
|
jQuery("#mail-compose_subject").on({
|
||||||
focus:function(){
|
focus:function(){
|
||||||
|
Loading…
Reference in New Issue
Block a user