1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

Working on time tracker

This commit is contained in:
Hillel Coren 2017-09-25 19:59:13 +03:00
parent 2bb56a1611
commit f7c8518cd0
2 changed files with 22 additions and 2 deletions

View File

@ -20,6 +20,14 @@
outline: none;
}
.fade-color {
animation-name: fadeToYellow;
}
.list-group-item {
animation-duration: .5s;
}
.list-group-item.active {
background-color: #f8f8f8 !important;
color: black !important;
@ -29,6 +37,15 @@
border-color: #fff !important;
}
.list-group-item.changed {
background-color: #ffffaa !important;
}
@keyframes fadeToYellow {
from {background-color: #f8f8f8}
to {background-color: #ffffaa}
}
.list-group-item.active .list-group-item-text,
.list-group-item.active:focus .list-group-item-text,
.list-group-item.active:hover .list-group-item-text {

View File

@ -198,7 +198,7 @@
}
self.filterStyle = ko.computed(function() {
return 'background-color: ' + (self.filter() ? '#fff68f' : 'white') + ' !important';
return 'background-color: ' + (self.filter() ? '#ffffaa' : 'white') + ' !important';
});
self.statistics = ko.computed(function() {
@ -432,7 +432,6 @@
} else {
data += '&is_running=0';
}
console.log(data);
$.ajax({
dataType: 'json',
type: method,
@ -590,6 +589,10 @@
var str = '';
if (self == model.selectedTask()) {
str = 'active';
if (! self.public_id() || model.formChanged()) {
str += ' changed fade-color';
}
}
if (! self.project()) {
return str;