summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-09-13 11:15:33 +0200
committerqsm-odoo <qsm@odoo.com>2016-09-15 14:12:50 +0200
commitcd244a40f3abd21de73d95a8a0e222fd5117f3e5 (patch)
tree22e52b172e109d40bfa5c4a2db219afb0822b398
parentee6cbf751e450e89b05dc4709c5031e1c5a9fb81 (diff)
[FIX] website, web_editor: remove born-dead code
This code was introduced in 8.0 and has never been called.
-rw-r--r--addons/web_editor/static/src/js/snippets.editor.js1
-rw-r--r--addons/website/static/src/js/website.snippets.editor.js28
2 files changed, 0 insertions, 29 deletions
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("<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);