[FIX] website snippet: pointer-ie

bzr revid: chm@openerp.com-20140227100917-wq54xrkgii7uhacl
This commit is contained in:
Christophe Matthieu 2014-02-27 11:09:17 +01:00
parent cfeac71d6a
commit 01a898ab8b
1 changed files with 5 additions and 2 deletions

View File

@ -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;
}