[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:
parent
75977b4e43
commit
48c17faf25
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue