diff --git a/addons/web_editor/static/src/js/snippets.editor.js b/addons/web_editor/static/src/js/snippets.editor.js index d603210b576..4906ab345d0 100644 --- a/addons/web_editor/static/src/js/snippets.editor.js +++ b/addons/web_editor/static/src/js/snippets.editor.js @@ -900,7 +900,6 @@ data.Editor = Class.extend({ this.$overlay.removeClass("hidden"); $("body").removeClass('move-important'); $clone.remove(); - $(".oe_drop_to_remove").remove(); if (this.dropped) { this.buildingBlock.getParent().rte.historyRecordUndo(this.$target); diff --git a/addons/website/static/src/js/website.snippets.editor.js b/addons/website/static/src/js/website.snippets.editor.js index 86baaa1aa9a..8f3d05515c8 100644 --- a/addons/website/static/src/js/website.snippets.editor.js +++ b/addons/website/static/src/js/website.snippets.editor.js @@ -478,34 +478,6 @@ options.registry["margin-x"] = options.registry.marginAndResize.extend({ return this.grid; }, - _drag_and_drop_after_insert_dropzone: function () { - var self = this; - $(".row:has(> .oe_drop_zone)").each(function () { - var $row = $(this); - var width = $row.innerWidth(); - var pos = 0; - while (width > pos + self.size.width) { - var $last = $row.find("> .oe_drop_zone:last"); - $last.each(function () { - pos = $(this).position().left; - }); - if (width > pos + self.size.width) { - $row.append("
"); - var $add_drop = $last.clone(); - $row.append($add_drop); - self._drag_and_drop_active_drop_zone($add_drop); - } - } - }); - }, - _drag_and_drop_start: function () { - this._super(); - this.$target.attr("class",this.$target.attr("class").replace(/\s*(col-lg-offset-|col-md-offset-)([0-9-]+)/g, '')); - }, - _drag_and_drop_stop: function () { - this.$target.addClass("col-md-offset-" + this.$target.prevAll(".oe_drop_to_remove").length); - this._super(); - }, on_clone: function ($clone) { var _class = $clone.attr("class").replace(/\s*(col-lg-offset-|col-md-offset-)([0-9-]+)/g, ''); $clone.attr("class", _class);