summaryrefslogtreecommitdiff
path: root/addons/web_view_editor/static/src
diff options
context:
space:
mode:
authorVishmita <vja@tinyerp.com>2012-10-08 19:01:23 +0530
committerVishmita <vja@tinyerp.com>2012-10-08 19:01:23 +0530
commit3e15613cf7783df5175f52d0ba4945ba54890f98 (patch)
tree13b3dc078491e2e7ac5984eb78f4c45a6906e274 /addons/web_view_editor/static/src
parent2b19de7169d2cfad54a3dc3d4f2bb5c0df3a44bf (diff)
[IMP]replace callenabled for on_close
bzr revid: vja@tinyerp.com-20121008133123-wg9gz98d0msrsnvn
Diffstat (limited to 'addons/web_view_editor/static/src')
-rw-r--r--addons/web_view_editor/static/src/js/view_editor.js2
1 files changed, 1 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 e65f0ab5d38..d9586eb415d 100644
--- a/addons/web_view_editor/static/src/js/view_editor.js
+++ b/addons/web_view_editor/static/src/js/view_editor.js
@@ -67,7 +67,7 @@ instance.web_view_editor.ViewEditor = instance.web.Widget.extend({
{text: _t("Close"), click: function() { self.view_edit_dialog.close(); window.location.reload(); }}
]
}).open();
- this.view_edit_dialog.on_close.add_last(function(){window.location.reload();});
+ this.view_edit_dialog.on('on_close',self,function(){window.location.reload();});
this.main_view_id = this.parent.fields_view.view_id;
this.action_manager = new instance.web.ActionManager(this);
this.action_manager.appendTo(this.view_edit_dialog.$el);