[IMP] hide res.log messages when doing view switches (e.g. edit/save/cancel/whatever)

bzr revid: xmo@openerp.com-20111207110408-qa2lv1mw4oxa3qpa
This commit is contained in:
Xavier Morel 2011-12-07 12:04:08 +01:00
parent d30c1d8c4f
commit aa93c2ca39
1 changed files with 6 additions and 1 deletions

View File

@ -471,8 +471,13 @@ session.web.ViewManagerAction = session.web.ViewManager.extend(/** @lends oepner
},
on_mode_switch: function (view_type, no_store) {
var self = this;
var switched = $.when(this._super(view_type, no_store)).then(function () {
self.$element.find('.oe-view-manager-logs:first')
.addClass('oe-folded').removeClass('oe-has-more')
.find('ul').empty();
});
return $.when(
this._super(view_type, no_store),
switched,
this.shortcut_check(this.views[view_type])
).then(function() {
var controller = self.views[self.active_view].controller,