projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b30915
)
[Fix]Improve code
author
Vishmita
<vja@tinyerp.com>
Mon, 8 Oct 2012 09:33:15 +0000
(15:03 +0530)
committer
Vishmita
<vja@tinyerp.com>
Mon, 8 Oct 2012 09:33:15 +0000
(15:03 +0530)
bzr revid: vja@tinyerp.com-
20121008093315
-tnfnrr0rhum2yyoy
addons/web_view_editor/static/src/js/view_editor.js
patch
|
blob
|
history
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
f26e12a
..
b3a4f0d
100644
(file)
--- 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');