summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2011-12-06 18:12:50 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2011-12-06 18:12:50 (GMT)
commitb8c7342ad1900d944748300f843028b49f2c27e6 (patch)
treec49b1b45b68472df20f2695be2b3d467dc5fdf2d
parent0d7e41c182927ee2410356947ac336a2beb262ff (diff)
downloadtabellio.webviews-b8c7342ad1900d944748300f843028b49f2c27e6.zip
tabellio.webviews-b8c7342ad1900d944748300f843028b49f2c27e6.tar.gz
tabellio.webviews-b8c7342ad1900d944748300f843028b49f2c27e6.tar.bz2
also match against normalized deputy name (from id) (#1120)
-rw-r--r--tabellio/webviews/deputy_listform.pt3
1 files changed, 2 insertions, 1 deletions
diff --git a/tabellio/webviews/deputy_listform.pt b/tabellio/webviews/deputy_listform.pt
index be5affd..85eb712 100644
--- a/tabellio/webviews/deputy_listform.pt
+++ b/tabellio/webviews/deputy_listform.pt
@@ -131,7 +131,8 @@ function refreshtable() {
}
if (name && name != 'null') { // hack around some string conversion
depname = row.find('td.name').text().toLowerCase();
- if (depname.indexOf(name) == -1) {
+ linkname = row.find('td.name a').attr('href');
+ if (depname.indexOf(name) == -1 && linkname.indexOf(name) == -1) {
display = false;
}
}