Sfoglia il codice sorgente

search people using case insensitive

master
patrick 6 anni fa
parent
commit
b19d1e0d32
2 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. +2
    -1
      css/bts_timesheet.css
  2. +2
    -0
      js/bts_timesheet.js

+ 2
- 1
css/bts_timesheet.css Vedi File

@@ -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 Vedi File

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

Loading…
Annulla
Salva