diff options
| author | qsm-odoo <qsm@odoo.com> | 2019-12-05 14:27:59 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-12-06 10:05:55 +0000 |
| commit | 83fae16bb98a0dd93be0227ac506a021449e63c6 (patch) | |
| tree | 4c578de5c21156e019fa978e82cae2ac7a131f6a /addons/web/static/src/js/libs/jquery.js | |
| parent | a41717bebf26ad106132d60c2a80159efe6949af (diff) | |
[REF] web_editor: review user value widgets scss
Part of https://github.com/odoo/odoo/pull/41402
Diffstat (limited to 'addons/web/static/src/js/libs/jquery.js')
| -rw-r--r-- | addons/web/static/src/js/libs/jquery.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/web/static/src/js/libs/jquery.js b/addons/web/static/src/js/libs/jquery.js index 77aa9e63c3d..1a33d43c2e5 100644 --- a/addons/web/static/src/js/libs/jquery.js +++ b/addons/web/static/src/js/libs/jquery.js @@ -17,6 +17,9 @@ $.extend($.expr[':'], { containsExact: function (element, index, matches){ return $.trim(element.innerHTML) === matches[3]; }, + containsExactText: function (element, index, matches) { + return element.innerText.trim() === matches[3].trim(); + }, /** * Note all escaped characters need to be double escaped inside of the * expression, so "\(" needs to be "\\(" |
