summaryrefslogtreecommitdiff
path: root/addons/web_hello
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2012-04-17 14:48:30 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2012-04-17 14:48:30 +0200
commiteab7adeacf3268836caf8d95d403f0aabc825dca (patch)
treeabfde6c7ec35fc8f92e0bb5453064c6ffa7d7ff9 /addons/web_hello
parent13e64388249c6c3ad6ff86c0109914a02fb25e6a (diff)
[imp] remaining of refactoring for 'openerp'
bzr revid: nicolas.vanhoren@openerp.com-20120417124830-6vy3nsjch3w94rt2
Diffstat (limited to 'addons/web_hello')
-rw-r--r--addons/web_hello/static/openerp/base_hello.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web_hello/static/openerp/base_hello.js b/addons/web_hello/static/openerp/base_hello.js
index 91caf263196..a74b8ef8f2f 100644
--- a/addons/web_hello/static/openerp/base_hello.js
+++ b/addons/web_hello/static/openerp/base_hello.js
@@ -2,9 +2,9 @@
* OpenERP base_hello (Example module)
*---------------------------------------------------------*/
-openerp.web_hello = function(openerp) {
+openerp.web_hello = function(instance) {
-openerp.web.SearchView = openerp.web.SearchView.extend({
+instance.web.SearchView = instance.web.SearchView.extend({
init:function() {
this._super.apply(this,arguments);
this.on_search.add(function(){console.log('hello');});
@@ -13,7 +13,7 @@ openerp.web.SearchView = openerp.web.SearchView.extend({
// here you may tweak globals object, if any, and play with on_* or do_* callbacks on them
-openerp.web.Login = openerp.web.Login.extend({
+instance.web.Login = instance.web.Login.extend({
start: function() {
console.log('Hello there');
this._super.apply(this,arguments);