[FIX] document.head not supported in Firefox 3.6
bzr revid: fme@openerp.com-20111018122607-4z6duz862hb8y3pn
This commit is contained in:
parent
ccdcd1e55f
commit
b06923f0f5
|
@ -600,7 +600,8 @@ openerp.web.Session = openerp.web.CallbackEnabled.extend( /** @lends openerp.web
|
|||
tag.onload_done = true;
|
||||
self.do_load_js(files);
|
||||
};
|
||||
document.head.appendChild(tag);
|
||||
var head = document.head || document.getElementsByTagName('head')[0];
|
||||
head.appendChild(tag);
|
||||
} else {
|
||||
this.on_modules_loaded();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue