[IMP] no point in using jquery just to fetch an attribute on root element

bzr revid: xmo@openerp.com-20130912113028-gsascr30eqw33d3p
This commit is contained in:
Xavier Morel
2013-09-12 13:30:28 +02:00
parent 75977b4e43
commit 48c17faf25
+2 -1
View File
@@ -10,8 +10,9 @@
];
website.get_context = function (dict) {
var html = document.documentElement;
return _.extend({
lang: $('html').attr('lang').replace('-', '_')
lang: html.getAttribute('lang').replace('-', '_')
}, dict);
};