summaryrefslogtreecommitdiff
path: root/addons/web_process/static/src/js
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2012-08-24 20:27:07 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2012-08-24 20:27:07 +0200
commit5e338c591ac76f57453563792fe20e9a20f31edc (patch)
tree1237783608cee90dc8c8a0c7d0880b1a366c08d4 /addons/web_process/static/src/js
parent9818cf073f11364fd1846b43ed34b0a93eb224f5 (diff)
[IMP] made a whole-application replace of $element by $el
bzr revid: nicolas.vanhoren@openerp.com-20120824182707-vt91ef40ieeudwyw
Diffstat (limited to 'addons/web_process/static/src/js')
-rw-r--r--addons/web_process/static/src/js/process.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/addons/web_process/static/src/js/process.js b/addons/web_process/static/src/js/process.js
index 60259f26b64..c2192a9a10a 100644
--- a/addons/web_process/static/src/js/process.js
+++ b/addons/web_process/static/src/js/process.js
@@ -15,7 +15,7 @@ openerp.web_process = function (instance) {
var self = this,
grandparent = this.getParent() && this.getParent().getParent(),
view = this.views[this.views_src[0].view_type],
- $process_view = this.$element.find('.oe_process');
+ $process_view = this.$el.find('.oe_process');
if (!(grandparent instanceof instance.web.WebClient) ||
!(view.view_type === this.views_src[0].view_type
&& view.view_id === this.views_src[0].view_id)) {
@@ -124,12 +124,12 @@ openerp.web_process = function (instance) {
return def.promise();
},
render_process_view : function() {
- this.$element.html(QWeb.render("ProcessView", this));
+ this.$el.html(QWeb.render("ProcessView", this));
var self = this;
- this.$element.find('#edit_process').click(function() {
+ this.$el.find('#edit_process').click(function() {
self.edit_process_view();
});
- var $parent = this.getParent().$element;
+ var $parent = this.getParent().$el;
$parent.find('#change_process').click(function() {
self.process_selection = false,
self.process_id = $parent.find('#select_process').val(),
@@ -137,7 +137,7 @@ openerp.web_process = function (instance) {
self.initialize_process_view();
});
- this.$element.find(".process_subflow").click(function() {
+ this.$el.find(".process_subflow").click(function() {
self.process_id = this.id;
self.initialize_process_view();
});
@@ -248,7 +248,7 @@ openerp.web_process = function (instance) {
context: dataset.context
}, function(result) {
var action_manager = new instance.web.ActionManager(self);
- action_manager.replace(self.$element);
+ action_manager.replace(self.$el);
action_manager.do_action(result.result);
});
});
@@ -271,7 +271,7 @@ openerp.web_process = function (instance) {
]
}).open();
- action_manager.appendTo(dialog.$element);
+ action_manager.appendTo(dialog.$el);
action_manager.do_action({
res_model : 'process.process',
res_id: self.process_id,