3 var website = openerp.website;
5 website.if_dom_contains('#email_designer', function () {
6 website.snippet.BuildingBlock.include({
7 _get_snippet_url: function () {
8 return '/website_mail/snippets';
12 $('.js_template_set').click(function(ev) {
13 // Copy the template to the body of the email
14 $('#email_designer').show();
15 $('#email_template').hide();
16 $(".js_content", $(this).parent()).children().clone().appendTo('#email_body');
17 $(".js_content", $(this).parent()).children().clone().appendTo('#email_body_html');
18 $('#email_body').addClass('oe_dirty');
19 $('#email_body_html').addClass('oe_dirty');
21 openerp.website.editor_bar.edit();
22 event.preventDefault();