diff options
| author | Simon Lejeune <sle@openerp.com> | 2015-02-16 13:35:16 +0100 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2015-02-16 13:43:44 +0100 |
| commit | b310a56c9878b78b3f2af1f078674b3fd9194fa0 (patch) | |
| tree | fa39e8c3593c5c33cd2cbfb1f1edfbfa06c8e16c /addons/analytic_user_function/analytic_user_function_view.xml | |
| parent | 8a10204e3883d58368131b4ba09bf447c40c4ac0 (diff) | |
[FIX] web: searchview: correct toggleClassof dropdowns
* toggleClass('class', undefined) behaves as if no second argument was
passed: a classic toggle
* toggleClass('class', !undefined) will only add the class if not
present, as the second argument is a boolean (!undefined is true)
This leads to an inconsistent state in the previous implementation of
multiple toggle methods (the`closed-menu` class was never toggled). We
now only use the not operator when the variable is not undefined.
Also, fix the toggle `closed-menu`/`open-menu` logic in dashboard.js,
where it was applied to the `a` instead of the `li`.
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
0 files changed, 0 insertions, 0 deletions
