From a3b85d7b8560cdc1057fcaffa3acbd247b4b5b7a Mon Sep 17 00:00:00 2001 From: Thomas B. <thomas@roundcube.net> Date: Mon, 07 Oct 2013 13:19:03 -0400 Subject: [PATCH] Merge pull request #133 from cwickert/release-0.9-canned-responses --- program/js/tiny_mce/plugins/autosave/editor_plugin_src.js | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/program/js/tiny_mce/plugins/autosave/editor_plugin_src.js b/program/js/tiny_mce/plugins/autosave/editor_plugin_src.js index 8311483..8b308f5 100644 --- a/program/js/tiny_mce/plugins/autosave/editor_plugin_src.js +++ b/program/js/tiny_mce/plugins/autosave/editor_plugin_src.js @@ -136,8 +136,10 @@ // Auto save contents each interval time setInterval(function() { - self.storeDraft(); - ed.nodeChanged(); + if (!ed.removed) { + self.storeDraft(); + ed.nodeChanged(); + } }, settings.autosave_interval); } }); -- Gitblit v1.9.1