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:
parent
a0188cd630
commit
ed7ca71699
@ -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;
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user