summaryrefslogtreecommitdiff
path: root/addons/website_mail/static/src
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2014-04-16 12:59:01 +0200
committerThibault Delavallée <tde@openerp.com>2014-04-16 12:59:01 +0200
commitd264cd164017795cee3a8b463eee318c7dc61552 (patch)
tree6c9bc66bc3c29e41d0c9d1bc4ecf5d2fd3878a7f /addons/website_mail/static/src
parentf9b2b667a0e3ac63aff55f48a98e5b47938c187a (diff)
[IMP] website_mail: make the template / mail editor work. We now have a limited
set of fields that we try to edit (body_html and body for body, email_from and email for email-from, name and subject for subject), because t-field is not dynamic. If the model that should be edited does not hold those fields, the mail editor won't work. Also fixed editor not being actiated when going into the body edition. bzr revid: tde@openerp.com-20140416105901-vavkh9erjsq4mof9
Diffstat (limited to 'addons/website_mail/static/src')
-rw-r--r--addons/website_mail/static/src/js/website_email_designer.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/addons/website_mail/static/src/js/website_email_designer.js b/addons/website_mail/static/src/js/website_email_designer.js
index b023f08eb5a..bd6516bc955 100644
--- a/addons/website_mail/static/src/js/website_email_designer.js
+++ b/addons/website_mail/static/src/js/website_email_designer.js
@@ -3,9 +3,6 @@
var website = openerp.website;
website.snippet.BuildingBlock.include({
- // init: function (parent) {
- // this._super.apply(this, arguments);
- // },
_get_snippet_url: function () {
return '/website_mail/snippets';
}
@@ -18,7 +15,7 @@
$('#email_template').hide();
$(".js_content", $(this).parent()).children().clone().appendTo('#email_body');
- // Todo: switch to edit mode
+ openerp.website.editor_bar.edit();
event.preventDefault();
});
});