[FIX] actually fix race condition on listview init: incorrect on_mode_switch override in xmo@openerp.com-20110816123510-gcx0dk8b2sgox5oi did not propagate primise from ViewManager's on_mode_switch

bzr revid: xmo@openerp.com-20110825082221-tasmo3je0wu4iw6h
This commit is contained in:
Xavier Morel
2011-08-25 10:22:21 +02:00
parent de955d0983
commit d2da68ad8b
+3 -2
View File
@@ -325,8 +325,9 @@ openerp.base.ViewManagerAction = openerp.base.ViewManager.extend({
}
},
on_mode_switch: function (view_type) {
this._super(view_type);
this.shortcut_check(this.views[view_type]);
return $.when(
this._super(view_type),
this.shortcut_check(this.views[view_type]));
},
shortcut_check : function(view) {
var self = this;