summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_api.rst
diff options
context:
space:
mode:
authorJairo Llopis <yajo.sk8@gmail.com>2019-04-18 09:45:52 +0000
committerJairo Llopis <yajo.sk8@gmail.com>2019-04-18 09:45:52 +0000
commitab1bd93dde170afbfae24f68c8e39012295197f1 (patch)
treef18077b7884a61d3bd6a4ff842355b14cbba0fab /doc/reference/javascript_api.rst
parent0f532c3dbf0d4854b5175ad22ce264204f94e182 (diff)
[FIX] web: Trim spaces when selecting option by text
It's quite common that the `$().text()` method returns lots of random whitespaces at the beginning and end of the string. They're pretty unpredictable (extension views can add or remove them) and invisible to the end user. This code chunk should allow to select an `<option>` based on its raw text content, but most of them will just fail without this patch. And most chances are that current ones just work equally with this patch. This will make frontend tours more pleasant to write. closes odoo/odoo#32791 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'doc/reference/javascript_api.rst')
0 files changed, 0 insertions, 0 deletions