[FIX] wrong refactoring about do_switch_view
bzr revid: nicolas.vanhoren@openerp.com-20121025092814-d3tpt9lfkn6b9w80
This commit is contained in:
parent
d41219749a
commit
098b23d76b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue