From ce7fb5bb37b969528d8cc24d5493163b492361a3 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Wed, 27 Jun 2012 16:12:49 +0200 Subject: [CHG] Ashes to ashes, dashes to underscores. bzr revid: fme@openerp.com-20120627141249-o10e2htxqtio72l7 --- addons/web_tests/static/src/js/web_tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web_tests/static/src/js/web_tests.js') diff --git a/addons/web_tests/static/src/js/web_tests.js b/addons/web_tests/static/src/js/web_tests.js index e6e6079ede5..e006567c707 100644 --- a/addons/web_tests/static/src/js/web_tests.js +++ b/addons/web_tests/static/src/js/web_tests.js @@ -13,7 +13,7 @@ openerp.web_tests = function (instance) { this.form.registry = instance.web.form.readonly; }, render: function () { - return '
'; + return '
'; }, start: function () { $.when( -- cgit v1.2.3 From 3ebfaedd64e27de71bf7a39d33b14dd9518680ee Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Tue, 14 Aug 2012 15:42:46 +0200 Subject: [IMP] removed a lot of OldWidget usage bzr revid: nicolas.vanhoren@openerp.com-20120814134246-y2awqbt2i1hcan61 --- addons/web_tests/static/src/js/web_tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web_tests/static/src/js/web_tests.js') diff --git a/addons/web_tests/static/src/js/web_tests.js b/addons/web_tests/static/src/js/web_tests.js index e006567c707..ffc32a93aaf 100644 --- a/addons/web_tests/static/src/js/web_tests.js +++ b/addons/web_tests/static/src/js/web_tests.js @@ -2,7 +2,7 @@ openerp.web_tests = function (instance) { instance.web.client_actions.add( 'buncha-forms', 'instance.web_tests.BunchaForms'); instance.web_tests = {}; - instance.web_tests.BunchaForms = instance.web.OldWidget.extend({ + instance.web_tests.BunchaForms = instance.web.Widget.extend({ init: function (parent) { this._super(parent); this.dataset = new instance.web.DataSetSearch(this, 'test.listview.relations'); -- cgit v1.2.3 From 5e338c591ac76f57453563792fe20e9a20f31edc Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Fri, 24 Aug 2012 20:27:07 +0200 Subject: [IMP] made a whole-application replace of $element by $el bzr revid: nicolas.vanhoren@openerp.com-20120824182707-vt91ef40ieeudwyw --- addons/web_tests/static/src/js/web_tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/web_tests/static/src/js/web_tests.js') diff --git a/addons/web_tests/static/src/js/web_tests.js b/addons/web_tests/static/src/js/web_tests.js index ffc32a93aaf..5b9c1d02503 100644 --- a/addons/web_tests/static/src/js/web_tests.js +++ b/addons/web_tests/static/src/js/web_tests.js @@ -18,7 +18,7 @@ openerp.web_tests = function (instance) { start: function () { $.when( this.dataset.read_slice(), - this.form.appendTo(this.$element)).then(this.on_everything_loaded); + this.form.appendTo(this.$el)).then(this.on_everything_loaded); }, on_everything_loaded: function (slice) { var records = slice[0].records; @@ -29,7 +29,7 @@ openerp.web_tests = function (instance) { this.form.on_record_loaded(records[0]); _(records.slice(1)).each(function (record, index) { this.dataset.index = index+1; - this.form.reposition($('
').appendTo(this.$element)); + this.form.reposition($('
').appendTo(this.$el)); this.form.on_record_loaded(record); }, this); } -- cgit v1.2.3