[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:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user