[FIX] web_hello: inherited start() method should return the result of the super call
[odoo/odoo.git] / addons / web_hello / static / openerp / base_hello.js
1 /*---------------------------------------------------------
2  * OpenERP base_hello (Example module)
3  *---------------------------------------------------------*/
4
5 openerp.web_hello = function(instance) {
6
7 instance.web.SearchView = instance.web.SearchView.extend({
8     init:function() {
9         this._super.apply(this,arguments);
10         this.on('search_data', this, function(){console.log('hello');});
11     }
12 });
13
14 // here you may tweak globals object, if any, and play with on_* or do_* callbacks on them
15
16 instance.web.Login = instance.web.Login.extend({
17     start: function() {
18         console.log('Hello there');
19         return this._super.apply(this,arguments);
20     }
21 });
22
23 };
24
25 // vim:et fdc=0 fdl=0: