1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 22:22:32 +01:00

Working on the time tracker

This commit is contained in:
Hillel Coren 2017-10-02 10:12:51 +03:00
parent a0188cd630
commit ed7ca71699
2 changed files with 12 additions and 1 deletions

View File

@ -2470,6 +2470,12 @@ $LANG = array(
'sort_field' => 'Sort By',
'sort_direction' => 'Direction',
'time_am' => 'AM',
'time_pm' => 'PM',
'time_mins' => 'mins',
'time_hr' => 'hr',
'time_hrs' => 'hrs',
);
return $LANG;

View File

@ -43,6 +43,11 @@
wrapHours: false,
showDuration: true,
step: 15,
lang: {
@foreach(['AM' , 'PM', 'mins', 'hr', 'hrs'] as $field)
"{{ $field }}": "{{ trans('texts.time_' . strtolower($field)) }}",
@endforeach
}
});
$(element).timepicker(options);
@ -168,7 +173,7 @@
self.sortDirection = ko.observable(defaultSortDirection);
self.isDesktop = function() {
return navigator.userAgent == 'Time Tracker';
return navigator.userAgent == "{{ TIME_TRACKER_USER_AGENT }}";
}
self.onSaveClick = function() {