|
|
@ -655,6 +655,9 @@ function rcube_webmail()
|
|
|
|
if (this.task == 'mail' && this.env.action == 'compose' && $.inArray(command, this.env.compose_commands) < 0 && !this.env.server_error) {
|
|
|
|
if (this.task == 'mail' && this.env.action == 'compose' && $.inArray(command, this.env.compose_commands) < 0 && !this.env.server_error) {
|
|
|
|
if (this.cmp_hash != this.compose_field_hash() && !confirm(this.get_label('notsentwarning')))
|
|
|
|
if (this.cmp_hash != this.compose_field_hash() && !confirm(this.get_label('notsentwarning')))
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// remove copy from local storage if compose screen is left intentionally
|
|
|
|
|
|
|
|
this.remove_compose_data(this.env.compose_id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.last_command = command;
|
|
|
|
this.last_command = command;
|
|
|
@ -3800,11 +3803,6 @@ function rcube_webmail()
|
|
|
|
ref.compose_type_activity_last = ref.compose_type_activity;
|
|
|
|
ref.compose_type_activity_last = ref.compose_type_activity;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, 5000);
|
|
|
|
}, 5000);
|
|
|
|
|
|
|
|
|
|
|
|
// remove data from local storage if compose screen is left
|
|
|
|
|
|
|
|
$(window).unload(function() {
|
|
|
|
|
|
|
|
ref.remove_compose_data(ref.env.compose_id);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Unlock interface now that saving is complete
|
|
|
|
// Unlock interface now that saving is complete
|
|
|
|