mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on time tracker
This commit is contained in:
parent
324e8bff35
commit
c1ff189e35
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
@section('head_css')
|
@section('head_css')
|
||||||
@parent
|
@parent
|
||||||
|
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
|
|
||||||
.form-control {
|
.form-control {
|
||||||
@ -298,16 +298,24 @@
|
|||||||
|
|
||||||
self.matchesFilter = function(filter) {
|
self.matchesFilter = function(filter) {
|
||||||
filter = filter.toLowerCase();
|
filter = filter.toLowerCase();
|
||||||
if (self.description().toLowerCase().indexOf(filter) >= 0) {
|
var parts = filter.split(' ');
|
||||||
return true;
|
for (var i=0; i<parts.length; i++) {
|
||||||
}
|
var part = parts[i];
|
||||||
if (self.project && self.project.name().toLowerCase().indexOf(filter) >= 0) {
|
var isMatch = false;
|
||||||
return true;
|
if (self.description().toLowerCase().indexOf(part) >= 0) {
|
||||||
}
|
isMatch = true;
|
||||||
if (self.client && self.client.displayName().toLowerCase().indexOf(filter) >= 0) {
|
}
|
||||||
return true;
|
if (self.project && self.project.name().toLowerCase().indexOf(part) >= 0) {
|
||||||
}
|
isMatch = true;
|
||||||
return false;
|
}
|
||||||
|
if (self.client && self.client.displayName().toLowerCase().indexOf(part) >= 0) {
|
||||||
|
isMatch = true;
|
||||||
|
}
|
||||||
|
if (! isMatch) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
self.onStartClick = function() {
|
self.onStartClick = function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user