From ab20dbc8859633597fef042b63764d33f65cb90e Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 22 Oct 2013 16:20:49 +0200 Subject: [PATCH] [FIX] Attribute values in selectors must be attributes or strings http://www.w3.org/TR/css3-selectors/#attribute-selectors http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier > identifiers (including element names, classes, and IDs in selectors) > can contain only the characters [a-zA-Z0-9] and ISO 10646 characters > U+00A0 and higher, plus the hyphen (-) and the underscore (_); they > cannot start with a digit, two hyphens, or a hyphen followed by a > digit. so "0" or "1" is not a valid identifier, must be a string and must thus be quoted. bzr revid: xmo@openerp.com-20131022142049-6fq70sielv95kmu0 --- addons/website/static/src/js/website.translator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/website/static/src/js/website.translator.js b/addons/website/static/src/js/website.translator.js index fddb5ef7b51..b3f460cbf75 100644 --- a/addons/website/static/src/js/website.translator.js +++ b/addons/website/static/src/js/website.translator.js @@ -44,7 +44,7 @@ self.translations = translations; self.processTranslatableNodes(); // Disable non translatable t-fields - $('[data-oe-type][data-oe-translate=0]').removeAttr('data-oe-type'); + $('[data-oe-type][data-oe-translate="0"]').removeAttr('data-oe-type'); }); }, processTranslatableNodes: function () { @@ -175,7 +175,7 @@ $(root).click(function (ev) { ev.preventDefault(); }); - return $('[data-oe-translate=1]'); + return $('[data-oe-translate="1"]'); } });