diff options
| author | Christophe Matthieu <chm@odoo.com> | 2015-06-10 10:42:28 +0200 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2015-07-10 17:00:15 +0200 |
| commit | fd5361c0f7116e951cf9e69e2d97a8ccb07ce1b6 (patch) | |
| tree | 96d765ac0ddc3738e8b6ca40d7a27ddf84e334cc /addons/mass_mailing/static/src/js/mass_mailing_editor.js | |
| parent | 2868a86401cf34ab28e036c3b359673c8efe324b (diff) | |
[IMP] mass_mailing: remove depends to website. Create a website_mass_mailing bridge to add subscribe snippet into website builder. Split website_links to have link_tracker to create short and trackable URLs, and website_links to have a website layout for link_tracker and add button to share page.
Diffstat (limited to 'addons/mass_mailing/static/src/js/mass_mailing_editor.js')
| -rw-r--r-- | addons/mass_mailing/static/src/js/mass_mailing_editor.js | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/addons/mass_mailing/static/src/js/mass_mailing_editor.js b/addons/mass_mailing/static/src/js/mass_mailing_editor.js index 9449af6445f..4974674ba3a 100644 --- a/addons/mass_mailing/static/src/js/mass_mailing_editor.js +++ b/addons/mass_mailing/static/src/js/mass_mailing_editor.js @@ -1,4 +1,4 @@ -odoo.define('website_mail.website_mail', function (require) { +odoo.define('mass_mailing.editor', function (require) { "use strict"; var Model = require('web.Model'); @@ -36,7 +36,7 @@ options.registry["width-x"] = options.Class.extend({ if ($handle.hasClass(handler)) { compass = handler; } }); if(self.is_image){ compass = "image"; } - self.BuildingBlock.editor_busy = true; + self.buildingBlock.editor_busy = true; var $body = $(document.body); @@ -63,7 +63,7 @@ options.registry["width-x"] = options.Class.extend({ var body_mouseup = function(){ $body.unbind('mousemove', body_mousemove); $body.unbind('mouseup', body_mouseup); - self.BuildingBlock.editor_busy = false; + self.buildingBlock.editor_busy = false; self.$target.removeClass("resize_editor_busy"); }; $body.mousemove(body_mousemove); @@ -78,7 +78,7 @@ options.registry["width-x"] = options.Class.extend({ var width = offset + target_width - event.pageX; } target.css("width", width + "px"); - self.BuildingBlock.cover_target(self.$overlay, self.$target); + self.buildingBlock.cover_target(self.$overlay, self.$target); return; }, get_int_width: function ($el) { @@ -106,7 +106,7 @@ options.registry["width-x"] = options.Class.extend({ }); } this._super($clone); - this.BuildingBlock.cover_target(this.$overlay, this.$target); + this.buildingBlock.cover_target(this.$overlay, this.$target); }, on_remove: function () { var remove_index = $(this.$target).index(); @@ -118,7 +118,7 @@ options.registry["width-x"] = options.Class.extend({ }); } this._super(); - this.BuildingBlock.cover_target(this.$overlay, this.$target); + this.buildingBlock.cover_target(this.$overlay, this.$target); }, }); @@ -168,6 +168,9 @@ web_editor.Class.include({ $("#choose_template").children().toggleClass("hidden"); $("body").trigger("resize"); $(window.top).trigger('resize'); + setTimeout(function () { + $(".note-popover").toggleClass("hidden", $("#templates").is(":visible")); + },0); }, on_set_snippet_template: function (event) { var $editable = $("#editable_area"); |
