diff options
| author | Vishmita <vja@tinyerp.com> | 2012-10-08 15:03:15 +0530 |
|---|---|---|
| committer | Vishmita <vja@tinyerp.com> | 2012-10-08 15:03:15 +0530 |
| commit | 777243bef32482803e8ccbc6735293c19187a54a (patch) | |
| tree | 32a27e6234b66083d5fad37e2a23d6fce0922228 /addons/web_view_editor/static/src | |
| parent | 6b30915df24f7f5082d0ad3a636e57de12d4bb7d (diff) | |
[Fix]Improve code
bzr revid: vja@tinyerp.com-20121008093315-tnfnrr0rhum2yyoy
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, 3 insertions, 1 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 f26e12a55d7..b3a4f0dcfac 100644 --- a/addons/web_view_editor/static/src/js/view_editor.js +++ b/addons/web_view_editor/static/src/js/view_editor.js @@ -1014,7 +1014,9 @@ 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("on_button_cancel",self,action_manager.destroy); + controller.on("on_button_cancel",self,function(){ + action_manager.destroy(); + }); controller.do_save.add_last(function(){ action_manager.destroy(); var value =controller.fields.name.get('value'); |
