mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 12:26:15 +02:00
Replaced timeago with moment.fromNow
This commit is contained in:
parent
b83e4f53b1
commit
3172f8d413
|
|
@ -316,7 +316,6 @@ if (window.localStorage.getItem("sidebar_state") === "collapsed")
|
|||
$("#sidenavToggler").click();
|
||||
}
|
||||
|
||||
$.timeago.settings.allowFuture = true;
|
||||
RefreshContextualTimeago = function(rootSelector = "#page-content")
|
||||
{
|
||||
$(rootSelector + " time.timeago").each(function()
|
||||
|
|
@ -352,7 +351,7 @@ RefreshContextualTimeago = function(rootSelector = "#page-content")
|
|||
}
|
||||
else
|
||||
{
|
||||
element.timeago("update", timestamp);
|
||||
element.text(moment(timestamp).fromNow());
|
||||
}
|
||||
|
||||
if (isDateWithoutTime)
|
||||
|
|
|
|||
|
|
@ -697,8 +697,6 @@
|
|||
<script src="{{ $U('/node_modules/datatables.net-rowgroup-bs4/js/rowGroup.bootstrap4.min.js?v=', true) }}{{ $version }}"></script>
|
||||
<script src="{{ $U('/node_modules/datatables.net-select/js/dataTables.select.min.js?v=', true) }}{{ $version }}"></script>
|
||||
<script src="{{ $U('/node_modules/datatables.net-select-bs4/js/select.bootstrap4.min.js?v=', true) }}{{ $version }}"></script>
|
||||
<script src="{{ $U('/node_modules/timeago/jquery.timeago.js?v=', true) }}{{ $version }}"></script>
|
||||
<script src="{{ $U('/node_modules', true) }}/timeago/locales/jquery.timeago.{{ $__t('timeago_locale') }}.js?v={{ $version }}"></script>
|
||||
<script src="{{ $U('/node_modules/toastr/build/toastr.min.js?v=', true) }}{{ $version }}"></script>
|
||||
<script src="{{ $U('/node_modules/tempusdominus-bootstrap-4/build/js/tempusdominus-bootstrap-4.js?v=', true) }}{{ $version }}"></script>
|
||||
<script src="{{ $U('/node_modules/sprintf-js/dist/sprintf.min.js?v=', true) }}{{ $version }}"></script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user