Working on time tracker

This commit is contained in:
Hillel Coren 2017-09-25 09:53:20 +03:00
parent c8655f2c45
commit b54c1fec35
3 changed files with 7 additions and 4 deletions

View File

@ -2454,7 +2454,7 @@ $LANG = array(
'filter_sort' => 'Filter/Sort',
'no_description' => 'No Description',
'time_tracker_login' => 'Time Tracker Login',
'save_or_discard' => 'Please save or discard your changes',
'save_or_discard' => 'Save or discard your changes',
'discard_changes' => 'Discard Changes',
'tasks_not_enabled' => 'Tasks are not enabled.',

View File

@ -109,7 +109,7 @@
<div class="input-group input-group-lg">
<span class="input-group-addon" style="width:1%;" data-bind="click: onFilterClick" title="{{ trans('texts.filter_sort') }}"><span class="glyphicon glyphicon-filter"></span></span>
<input id="search" type="search" class="form-control search" autocomplete="off" autofocus="autofocus"
data-bind="event: { focus: onFilterFocus, input: onFilterChanged, keypress: onFilterKeyPress }, value: filter, valueUpdate: 'afterkeydown', attr: {placeholder: placeholder}">
data-bind="event: { focus: onFilterFocus, input: onFilterChanged, keypress: onFilterKeyPress }, value: filter, valueUpdate: 'afterkeydown', attr: {placeholder: placeholder, style: filterStyle }">
<span class="input-group-addon" style="width:1%;" data-bind="click: onRefreshClick" title="{{ trans('texts.refresh') }}"><span class="glyphicon glyphicon-repeat"></span></span>
</div>
@ -375,7 +375,6 @@
return undefined;
}
});
*/
/*
$( window ).scroll(function() {

View File

@ -173,6 +173,10 @@
}, 1000);
}
self.filterStyle = ko.computed(function() {
return 'background-color: ' + (self.filter() ? '#fff68f' : 'white') + ' !important';
});
self.statistics = ko.computed(function() {
return '';
});