summaryrefslogtreecommitdiff
path: root/addons/web_view_editor/static/src/js
diff options
context:
space:
mode:
authorVishmita <vja@tinyerp.com>2012-10-11 15:58:37 +0530
committerVishmita <vja@tinyerp.com>2012-10-11 15:58:37 +0530
commitffe8dd604a833ae8c3f6b8d1fd6ccdfa02b256bb (patch)
tree44d7961b09e4678c0ba8f3c4bc1ece4469213b6c /addons/web_view_editor/static/src/js
parent3e15613cf7783df5175f52d0ba4945ba54890f98 (diff)
parent70afbd796e441cce26171af03c26a08f88c3ab52 (diff)
[MERGE]Merge Trunk
bzr revid: vja@tinyerp.com-20121011102837-k0y1kvf901rp3l8u
Diffstat (limited to 'addons/web_view_editor/static/src/js')
-rw-r--r--addons/web_view_editor/static/src/js/view_editor.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web_view_editor/static/src/js/view_editor.js b/addons/web_view_editor/static/src/js/view_editor.js
index d9586eb415d..bde683ec2f2 100644
--- a/addons/web_view_editor/static/src/js/view_editor.js
+++ b/addons/web_view_editor/static/src/js/view_editor.js
@@ -1014,8 +1014,8 @@ instance.web_view_editor.ViewEditor = instance.web.Widget.extend({
var action_manager = new instance.web.ActionManager(self);
$.when(action_manager.do_action(action)).then(function() {
var controller = action_manager.dialog_widget.views['form'].controller;
- controller.on_button_cancel.add_last(function(){
- action_manager.destroy()
+ controller.on("on_button_cancel", self, function(){
+ action_manager.destroy();
});
controller.do_save.add_last(function(){
action_manager.destroy();