~openerp-dev/openerp-web/trunk-bug-880804-ysa

« back to all changes in this revision

Viewing changes to addons/web/static/src/js/core.js

  • Committer: Fabien Meghazi
  • Date: 2011-10-24 09:21:40 UTC
  • Revision ID: fme@openerp.com-20111024092140-zvrtzmy9cppjyaj2
[FIX] Do not use node.parentElement (sorry all)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1048
1048
openerp.web.qweb.debug = (window.location.search.indexOf('?debug') !== -1);
1049
1049
openerp.web.qweb.format_text_node = function(s) {
1050
1050
    // Note that 'this' is the Qweb Node of the text
1051
 
    var translation = this.node.parentElement.attributes['t-translation'];
 
1051
    var translation = this.node.parentNode.attributes['t-translation'];
1052
1052
    if (translation && translation.value === 'off') {
1053
1053
        return s;
1054
1054
    }