From b19d1e0d32e849d14a01b6a8016b02bf6f5a2c55 Mon Sep 17 00:00:00 2001 From: patrick Date: Thu, 4 Jul 2019 00:51:21 +1000 Subject: [PATCH] search people using case insensitive --- css/bts_timesheet.css | 3 ++- js/bts_timesheet.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/css/bts_timesheet.css b/css/bts_timesheet.css index 828a828..b4a826a 100644 --- a/css/bts_timesheet.css +++ b/css/bts_timesheet.css @@ -444,11 +444,12 @@ div.week2 > div { } div.week1 > div { + color: #2c87f0; box-shadow: 0px 0px 10px white inset; } div.week2 > div { - background-color: dodgerblue; + background-color: #2c87f0; box-shadow: 0px 0px 10px white inset; } diff --git a/js/bts_timesheet.js b/js/bts_timesheet.js index ca0c578..04743e0 100644 --- a/js/bts_timesheet.js +++ b/js/bts_timesheet.js @@ -155,9 +155,11 @@ function filter_user(input){ var value = $(input).attr('value'); + value = value.toLowerCase(); var selector = get_selector_for_filter_people(input); $.each( $(selector).find('div.peopleitem'), function(index, e){ var html = $(e).find('div[name="title"] a').html(); + html = html.toLowerCase(); if (-1 != html.indexOf(value)){//we find it; $(e).show(); }else{