diff options
| author | Fabien Meghazi <fme@openerp.com> | 2014-09-17 10:03:33 +0200 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2014-09-17 14:50:12 +0200 |
| commit | 8d08e067584587e9cd06a738258f2771534d6000 (patch) | |
| tree | 320536040c08b5f2cb949bc4250446c7712d861d /addons/website_mail/static/src | |
| parent | 5bfad4dd52cc96ff6a290a69b5f85d7d48ef6c8f (diff) | |
[FIX] Bundlification remains (Fixes #2463)
Diffstat (limited to 'addons/website_mail/static/src')
| -rw-r--r-- | addons/website_mail/static/src/js/website_email_designer.js | 14 |
1 files changed, 7 insertions, 7 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 1ea39ae657c..9f0692b17ce 100644 --- a/addons/website_mail/static/src/js/website_email_designer.js +++ b/addons/website_mail/static/src/js/website_email_designer.js @@ -2,15 +2,15 @@ 'use strict'; var website = openerp.website; - website.snippet.BuildingBlock.include({ - _get_snippet_url: function () { - return '/website_mail/snippets'; - } - }); + website.if_dom_contains('#email_designer', function () { + website.snippet.BuildingBlock.include({ + _get_snippet_url: function () { + return '/website_mail/snippets'; + } + }); - // Copy the template to the body of the email - $(document).ready(function () { $('.js_template_set').click(function(ev) { + // Copy the template to the body of the email $('#email_designer').show(); $('#email_template').hide(); $(".js_content", $(this).parent()).children().clone().appendTo('#email_body'); |
