summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.translator.js
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2013-10-22 16:20:49 +0200
committerXavier Morel <xmo@openerp.com>2013-10-22 16:20:49 +0200
commitab20dbc8859633597fef042b63764d33f65cb90e (patch)
tree47cc07c0e7d2b925ea6123e2b76268ad334c7827 /addons/website/static/src/js/website.translator.js
parent7994ceb43df7f25cf3ff814c6e2dfd0c4b1169d2 (diff)
[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
Diffstat (limited to 'addons/website/static/src/js/website.translator.js')
-rw-r--r--addons/website/static/src/js/website.translator.js4
1 files 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"]');
}
});