mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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_field' => 'Sort By',
|
||||||
'sort_direction' => 'Direction',
|
'sort_direction' => 'Direction',
|
||||||
|
|
||||||
|
'time_am' => 'AM',
|
||||||
|
'time_pm' => 'PM',
|
||||||
|
'time_mins' => 'mins',
|
||||||
|
'time_hr' => 'hr',
|
||||||
|
'time_hrs' => 'hrs',
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return $LANG;
|
return $LANG;
|
||||||
|
@ -43,6 +43,11 @@
|
|||||||
wrapHours: false,
|
wrapHours: false,
|
||||||
showDuration: true,
|
showDuration: true,
|
||||||
step: 15,
|
step: 15,
|
||||||
|
lang: {
|
||||||
|
@foreach(['AM' , 'PM', 'mins', 'hr', 'hrs'] as $field)
|
||||||
|
"{{ $field }}": "{{ trans('texts.time_' . strtolower($field)) }}",
|
||||||
|
@endforeach
|
||||||
|
}
|
||||||
});
|
});
|
||||||
$(element).timepicker(options);
|
$(element).timepicker(options);
|
||||||
|
|
||||||
@ -168,7 +173,7 @@
|
|||||||
self.sortDirection = ko.observable(defaultSortDirection);
|
self.sortDirection = ko.observable(defaultSortDirection);
|
||||||
|
|
||||||
self.isDesktop = function() {
|
self.isDesktop = function() {
|
||||||
return navigator.userAgent == 'Time Tracker';
|
return navigator.userAgent == "{{ TIME_TRACKER_USER_AGENT }}";
|
||||||
}
|
}
|
||||||
|
|
||||||
self.onSaveClick = function() {
|
self.onSaveClick = function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user