Fix saving draft just after entering compose window (#1489012)

pull/66/head^2
Aleksander Machniak 11 years ago
parent f603883d37
commit 1f82e46502

@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail
===========================
- Fix saving draft just after entering compose window (#1489012)
- Call resize handler in intervals to prevent lags and double onresize calls in Chrome (#1489005)
- Fix javascript error in IE9 when loading form with placeholders into an iframe (#1489008)
- Fix handling of some conditional comment tags in HTML message (#1489004)

@ -985,8 +985,8 @@ function rcube_webmail()
// Reset the auto-save timer
clearTimeout(this.save_timer);
// compose form did not change
if (this.cmp_hash == this.compose_field_hash()) {
// compose form did not change (and draft wasn't saved already)
if (this.draft_saved && this.cmp_hash == this.compose_field_hash()) {
this.auto_save_start();
break;
}
@ -3302,6 +3302,7 @@ function rcube_webmail()
this.set_draft_id = function(id)
{
this.draft_saved = id;
$("input[name='_draft_saveid']").val(id);
};

Loading…
Cancel
Save