From 72f7aa772edfae4162ba450db5b57229df49d631 Mon Sep 17 00:00:00 2001 From: "sma (Tiny)" Date: Tue, 2 Aug 2011 11:40:30 +0530 Subject: [PATCH] [FIX] Need to load all js files for calendar, gantt, graph view. bzr revid: sma@tinyerp.com-20110802061030-eqvqab8ruwxjhpuy --- addons/base/static/src/js/chrome.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/base/static/src/js/chrome.js b/addons/base/static/src/js/chrome.js index ed84c32071b..50d4c6e418e 100644 --- a/addons/base/static/src/js/chrome.js +++ b/addons/base/static/src/js/chrome.js @@ -250,9 +250,9 @@ openerp.base.Session = openerp.base.Widget.extend( /** @lends openerp.base.Sessi if ( (tag.readyState && tag.readyState != "loaded" && tag.readyState != "complete") || tag.onload_done ) return; tag.onload_done = true; - self.do_load_js(files); }; - document.head.appendChild(tag); + $('head').append(tag); + self.do_load_js(files); } else { this.on_modules_loaded(); }