[FIX] web: no switch_mode trigger if not switched
authorDenis Ledoux <dle@odoo.com>
Fri, 27 Jun 2014 11:03:52 +0000 (13:03 +0200)
committerDenis Ledoux <dle@odoo.com>
Fri, 27 Jun 2014 11:03:52 +0000 (13:03 +0200)
commitf55e4a5e1499dfc7ab134e0e8e769310a8c60898
treef308dc9e9fcaf8acc2f118bfd77c0382b613b735
parent55b121ae9f687ecbf63719ce3468cc768cd0d50b
[FIX] web: no switch_mode trigger if not switched

The switch mode event was triggered even if the view was not actually switched
This leaded to inconsistencies, like adding the view in the breadcrumb history, while the switch did not happen
addons/web/static/src/js/views.js