From 01a898ab8ba9fce5bcf9613327227d38366c7417 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Thu, 27 Feb 2014 11:09:17 +0100 Subject: [PATCH] [FIX] website snippet: pointer-ie bzr revid: chm@openerp.com-20140227100917-wq54xrkgii7uhacl --- addons/website/static/src/js/website.snippets.editor.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/addons/website/static/src/js/website.snippets.editor.js b/addons/website/static/src/js/website.snippets.editor.js index b20e0645253..a01d7605851 100644 --- a/addons/website/static/src/js/website.snippets.editor.js +++ b/addons/website/static/src/js/website.snippets.editor.js @@ -257,8 +257,11 @@ } if (this.$active_snipped_id) { this.snippet_blur(this.$active_snipped_id); - this.$active_snipped_id.data("overlay").remove(); - this.$active_snipped_id.removeData("overlay"); + var $overlay = this.$active_snipped_id.data("overlay"); + if ($overlay) { + $overlay.remove(); + this.$active_snipped_id.removeData("overlay"); + } this.$active_snipped_id.removeData("snippet-editor"); this.$active_snipped_id = false; }