diff options
| author | Christophe Matthieu <chm@openerp.com> | 2014-02-06 15:02:58 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@openerp.com> | 2014-02-06 15:02:58 +0100 |
| commit | 052bcacd5f80e68b3c6fbce31ccc56206eb480bb (patch) | |
| tree | 8f174004768922a7eb1ea3a50c416ba145139048 /addons/website/static/src | |
| parent | d819d494f11d275cdd9ad2a7078ae93d4ef59dc1 (diff) | |
[FIX] website_sale template; snippet editor
bzr revid: chm@openerp.com-20140206140258-l3hriceuksx0c061
Diffstat (limited to 'addons/website/static/src')
| -rw-r--r-- | addons/website/static/src/js/website.snippets.editor.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website/static/src/js/website.snippets.editor.js b/addons/website/static/src/js/website.snippets.editor.js index 8a3e7a4421d..a702344a308 100644 --- a/addons/website/static/src/js/website.snippets.editor.js +++ b/addons/website/static/src/js/website.snippets.editor.js @@ -9,7 +9,7 @@ var self = this; $("[data-oe-model]").on('click', function (event) { var $this = $(event.srcElement); - var tag = $this[0].tagName.toLowerCase(); + var tag = $this[0] && $this[0].tagName.toLowerCase(); if (!(tag === 'a' || tag === "button") && !$this.parents("a, button").length) { self.$('[data-action="edit"]').parent().effect('bounce', {distance: 18, times: 5}, 250); } |
