From 593d81184d41a47f00c14fca089e2d00d96b8a01 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 21 Jun 2018 14:20:52 +0200 Subject: [PATCH] Do not run draft auto save if any of the tags are in edit mode --- mail/js/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index 0dfab372c0..d4aa365273 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -247,7 +247,10 @@ app.classes.mail = AppJS.extend( // Set autosaving interval to 2 minutes for compose message this.W_INTERVALS.push(window.setInterval(function (){ - that.saveAsDraft(null, 'autosaving'); + if (jQuery('.ms-editor-wrap').length === 0) + { + that.saveAsDraft(null, 'autosaving'); + } }, 120000)); /* Control focus actions on subject to handle expanders properly.*/