[FIX] website: Selector for the image and table-handlers are still there even if we've deleted the snippet

This commit is contained in:
Christophe Matthieu
2015-01-16 16:38:09 +01:00
parent e42995b614
commit db9b7bc825
@@ -1944,16 +1944,19 @@
}
},
on_clone: function () {
on_clone: function (event) {
event.preventDefault();
var $clone = this.$target.clone(false);
this.$target.after($clone);
for (var i in this.styles){
this.styles[i].on_clone($clone);
}
this.BuildingBlock.create_overlay(this.$target);
return false;
},
on_remove: function () {
on_remove: function (event) {
event.preventDefault();
this.on_blur();
this.BuildingBlock.parent.rte.historyRecordUndo(this.$target);
@@ -1977,6 +1980,10 @@
}
}
// clean editor if they are image or table in deleted content
$(".note-control-selection").hide();
$('.o_table_handler').remove();
return false;
},