[FIX] website, web_editor: remove born-dead code

This code was introduced in 8.0 and has never been called.
This commit is contained in:
qsm-odoo
2016-09-15 14:12:50 +02:00
parent ee6cbf751e
commit cd244a40f3
2 changed files with 0 additions and 29 deletions
@@ -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);
@@ -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("<div class='col-md-1 oe_drop_to_remove'/>");
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);