summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_reference.rst
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2015-12-07 13:57:48 +0100
committerAaron Bohy <aab@odoo.com>2015-12-07 16:32:27 +0100
commit169f819ab147f2335f05210513279282cceb70ee (patch)
tree4473c39b018e303adfea735fd8731825ec8d3590 /doc/reference/javascript_reference.rst
parent88c5a90677ff00dce27aae673616e4f27d7ad508 (diff)
[FIX] mail: read more: prevent default
Long messages are not displayed entirely, but a 'read more' button is displayed and allows to show the whole message. This button is an <a> inside a <span>, both having classname 'oe_mail_expand'. Also note that messages are html, not plain text. Sometimes, the long message is truncated at some point that the 'read more' is inserted inside an <a>, which is not html valid (nested links). In this case, the browser automatically moves the inner <a> out of the outer one. Unfortunately, when that happens, clicking on 'read more' redirects to the app switcher because of missing prevent_default(), as the event handler was bound on the <span> clicked, not the inner <a>. This rev. simply binds the handler on 'oe_mail_expand', not specifically on its <span>.
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions