Przeglądaj źródła

search people using case insensitive

master
patrick 6 lat temu
rodzic
commit
b19d1e0d32
2 zmienionych plików z 4 dodań i 1 usunięć
  1. +2
    -1
      css/bts_timesheet.css
  2. +2
    -0
      js/bts_timesheet.js

+ 2
- 1
css/bts_timesheet.css Wyświetl plik

@@ -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;
}


+ 2
- 0
js/bts_timesheet.js Wyświetl plik

@@ -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{

Ładowanie…
Anuluj
Zapisz