-
- Downloads
[FIX] web,mail: widgets: replace $el.toggle() by do_toggle()
Since rev. 16eb36ff, do_show() and do_hide() on widgets toggle the classname o_hidden on which the rule 'display: none' is defined, instead of calling jQuery's show() and hide(). The method do_toggle(), sharing the same logic, has been introduced in rev. 74c5f772. From now on, every widgets should call do_toggle() instead of $el.toggle() as it will have undesiderable effects (they should call do_show() and do_hide() instead of $el.show() and $el.hide() as well, this as been done in 16eb36ff). This rev. replaces all calls to $el.toggle() by do_toggle(). It also adds an optional argument to do_toggle() to force hidding or showing the widget.
Showing
- addons/mail/static/src/js/mail.js 1 addition, 1 deletionaddons/mail/static/src/js/mail.js
- addons/web/static/src/css/base.css 0 additions, 1 deletionaddons/web/static/src/css/base.css
- addons/web/static/src/css/base.sass 0 additions, 1 deletionaddons/web/static/src/css/base.sass
- addons/web/static/src/js/control_panel.js 1 addition, 1 deletionaddons/web/static/src/js/control_panel.js
- addons/web/static/src/js/framework/widget.js 14 additions, 4 deletionsaddons/web/static/src/js/framework/widget.js
- addons/web/static/src/js/views/form_view.js 1 addition, 2 deletionsaddons/web/static/src/js/views/form_view.js
- addons/web/static/src/js/views/form_widgets.js 1 addition, 1 deletionaddons/web/static/src/js/views/form_widgets.js
- addons/web/static/src/js/views/search_view.js 1 addition, 1 deletionaddons/web/static/src/js/views/search_view.js
Loading
Please register or sign in to comment