[FIX] Do not use node.parentElement (sorry all)
lp bug: https://launchpad.net/bugs/879797 fixed bzr revid: fme@openerp.com-20111024092140-zvrtzmy9cppjyaj2
This commit is contained in:
parent
66c0054a51
commit
62c52bf0c2
|
@ -1048,7 +1048,7 @@ openerp.web.qweb = new QWeb2.Engine();
|
|||
openerp.web.qweb.debug = (window.location.search.indexOf('?debug') !== -1);
|
||||
openerp.web.qweb.format_text_node = function(s) {
|
||||
// Note that 'this' is the Qweb Node of the text
|
||||
var translation = this.node.parentElement.attributes['t-translation'];
|
||||
var translation = this.node.parentNode.attributes['t-translation'];
|
||||
if (translation && translation.value === 'off') {
|
||||
return s;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue