diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-03-22 20:05:14 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-03-22 20:05:14 +0100 |
| commit | cdbee48888a9028ed54abc2c764d2b560e0af099 (patch) | |
| tree | 72dcd7ea458cd6ce14d2e365ee82bea53947dc4a /addons/web/static/src/js/libs | |
| parent | 7d86bdca2111e3aeec8d165814b086c43b62998e (diff) | |
| parent | 39d9c362c5b67a6c5a5d589daa13941e21358b1d (diff) | |
[MERGE] forward port branch 11.0 up to 39d9c362c5b
Diffstat (limited to 'addons/web/static/src/js/libs')
| -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 0b12b4fed0d..4bcab8eb866 100644 --- a/addons/web/static/src/js/libs/jquery.js +++ b/addons/web/static/src/js/libs/jquery.js @@ -11,6 +11,9 @@ $.extend($.expr[':'], { containsLike: function (element, index, matches){ return element.innerHTML.toUpperCase().indexOf(matches[3].toUpperCase()) >= 0; }, + containsTextLike: function (element, index, matches){ + return element.innerText.toUpperCase().indexOf(matches[3].toUpperCase()) >= 0; + }, containsExact: function (element, index, matches){ return $.trim(element.innerHTML) === matches[3]; }, |
