fix hello

bzr revid: al@openerp.com-20110317122239-wlyapf12h73m6uqo
This commit is contained in:
Antony Lesuisse
2011-03-17 13:22:39 +01:00
parent edbb2d7168
commit 86bc7ef222
2 changed files with 1 additions and 14 deletions
@@ -238,7 +238,6 @@ openerp.base.Session = openerp.base.BasicController.extend({
var s = document.createElement("script");
s.src = files[i];
s.type = "text/javascript";
self.log("load script: " + s.src);
document.getElementsByTagName("head")[0].appendChild(s);
}
// at this point the js should be loaded or not ?
@@ -252,8 +251,6 @@ openerp.base.Session = openerp.base.BasicController.extend({
},
on_session_modules_loaded: function() {
var self = this;
self.log("init modules");
self.log(self.module_list);
for(var j=0; j<self.module_list.length; j++) {
var mod = self.module_list[j];
self.log("init module "+mod);
+1 -11
View File
@@ -4,20 +4,10 @@
openerp.base_hello = function(openerp) {
openerp.base_hello.HelloController = openerp.base.Controller.extend({
init:function() {
this._super.apply(this,arguments);
},
do_hello:function() {
alert("hello");
},
});
openerp.base.SearchView = openerp.base.SearchView.extend({
init:function() {
this._super.apply(this,arguments);
this.hello = openerp.base_hello.HelloController();
this.on_search.add(this.hello.do_hello);
this.on_search.add(function(){alert('hello')});
},
});