[FIX] wrong refactoring about do_switch_view

bzr revid: nicolas.vanhoren@openerp.com-20121025092814-d3tpt9lfkn6b9w80
This commit is contained in:
niv-openerp 2012-10-25 11:28:14 +02:00
parent d41219749a
commit 098b23d76b
1 changed files with 2 additions and 4 deletions

View File

@ -1281,11 +1281,9 @@ instance.web.View = instance.web.Widget.extend({
},
/**
* Switches to a specific view type
*
* @param {String} view view type to switch to
*/
do_switch_view: function(view) {
this.trigger('switch_mode',view);
do_switch_view: function() {
this.trigger.apply(this, ['switch_mode'].concat(_.toArray(arguments)));
},
/**
* Cancels the switch to the current view, switches to the previous one