diff options
| author | Vishmita <vja@tinyerp.com> | 2012-10-08 12:57:33 +0530 |
|---|---|---|
| committer | Vishmita <vja@tinyerp.com> | 2012-10-08 12:57:33 +0530 |
| commit | 6b30915df24f7f5082d0ad3a636e57de12d4bb7d (patch) | |
| tree | a21de693b25c2abe8e293b4c34ac398936692ba5 /addons/web_view_editor/static/src | |
| parent | 55bcd978af814c90b1d486055940f242dfe0dbde (diff) | |
[Fix]replace callenabled for on_button_cancel
bzr revid: vja@tinyerp.com-20121008072733-kveozkvheu9kiti2
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, 1 insertions, 3 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 e65f0ab5d38..f26e12a55d7 100644 --- a/addons/web_view_editor/static/src/js/view_editor.js +++ b/addons/web_view_editor/static/src/js/view_editor.js @@ -1014,9 +1014,7 @@ 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,action_manager.destroy); controller.do_save.add_last(function(){ action_manager.destroy(); var value =controller.fields.name.get('value'); |
