summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/libs/jquery.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-03-23 10:31:00 +0100
committerChristophe Simonis <chs@odoo.com>2018-03-23 10:31:00 +0100
commit845f4ef7d3fdd4c5a6753448fc4a8b487106149f (patch)
tree064c30616279e4368e77eef377bed7c9ea6c21e5 /addons/web/static/src/js/libs/jquery.js
parent2a6ff8f8e47874151c45352f31b8206b3fab9456 (diff)
parent8a7b845353155d12c7717be476583fdf61e3e22c (diff)
[MERGE] forward port branch saas-11.2 up to 8a7b8453531
Diffstat (limited to 'addons/web/static/src/js/libs/jquery.js')
-rw-r--r--addons/web/static/src/js/libs/jquery.js3
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];
},