[IMP]replace add* method.

bzr revid: vme@tinyerp.com-20121009124908-r33qqpx15ea39p78
This commit is contained in:
Vidhin Mehta (OpenERP) 2012-10-09 18:19:08 +05:30
parent 876073f5ec
commit 5645a84a16
1 changed files with 2 additions and 2 deletions

View File

@ -25,9 +25,9 @@ instance.web.form.DashBoard = instance.web.form.FormWidget.extend({
}).bind('sortstop', self.do_save_dashboard);
var old_title = this.__parentedParent.get('title');
this.__parentedParent.on_record_loaded.add_last(function(){
this.__parentedParent.on('record_load', this, function(){
self.__parentedParent.set({ 'title' : old_title});
});
})
// Events
this.$el.find('.oe_dashboard_link_reset').click(this.on_reset);
this.$el.find('.oe_dashboard_link_change_layout').click(this.on_change_layout);