[bitbake-devel] [PATCH 65/94] bitbake: webhob: improve search functionality
Alex DAMIAN
alexandru.damian at intel.com
Tue Sep 24 16:52:34 UTC 2013
From: Alexandru DAMIAN <alexandru.damian at intel.com>
we improve the search functionality to allow for
multiple search terms separated by space.
Signed-off-by: Alexandru DAMIAN <alexandru.damian at intel.com>
---
bitbake/lib/webhob/bldviewer/templates/base.html | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/bitbake/lib/webhob/bldviewer/templates/base.html b/bitbake/lib/webhob/bldviewer/templates/base.html
index 45f8652..12b2f01 100644
--- a/bitbake/lib/webhob/bldviewer/templates/base.html
+++ b/bitbake/lib/webhob/bldviewer/templates/base.html
@@ -22,8 +22,11 @@ function showhideTableColumn(i, sh) {
function filterTableRows(test) {
if (test.length > 0) {
- var r = new RegExp(test);
- $('tr.data').map( function (i, el) { if (! r.test($(el).html())) {$(el).hide()} else $(el).show()});
+
+ var r = test.split(/[ ,]+/).map(function (e) { return new RegExp(e, 'i') });
+ $('tr.data').map( function (i, el) {
+ (! r.map(function (j) { return j.test($(el).html())}).reduce(function (c, p) { return c && p;} )) ? $(el).hide() : $(el).show();
+ });
} else
{
$('tr.data').show();
--
1.8.1.2
More information about the bitbake-devel
mailing list