diff options
| author | Vishmita <vja@tinyerp.com> | 2012-10-11 15:58:37 +0530 |
|---|---|---|
| committer | Vishmita <vja@tinyerp.com> | 2012-10-11 15:58:37 +0530 |
| commit | ffe8dd604a833ae8c3f6b8d1fd6ccdfa02b256bb (patch) | |
| tree | 44d7961b09e4678c0ba8f3c4bc1ece4469213b6c /addons/web_view_editor/static/src | |
| parent | 3e15613cf7783df5175f52d0ba4945ba54890f98 (diff) | |
| parent | 70afbd796e441cce26171af03c26a08f88c3ab52 (diff) | |
[MERGE]Merge Trunk
bzr revid: vja@tinyerp.com-20121011102837-k0y1kvf901rp3l8u
Diffstat (limited to 'addons/web_view_editor/static/src')
| -rw-r--r-- | addons/web_view_editor/static/src/js/view_editor.js | 4 |
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(); |
