diff --git a/data/web/js/site/user.js b/data/web/js/site/user.js index fb6de191..8fd7b47f 100644 --- a/data/web/js/site/user.js +++ b/data/web/js/site/user.js @@ -79,7 +79,7 @@ jQuery(function($){ $('.clear-last-logins').on('click', function () {if (confirm(lang.delete_ays)) {last_logins('reset');}}) $(".login-history").on('click', function(e) {e.preventDefault(); last_logins('get', $(this).data('days'));$(this).addClass('active').siblings().removeClass('active');}); - function last_logins(action, days = 1) { + function last_logins(action, days = 7) { if (action == 'get') { $('.last-login').html('' + lang.waiting); $.ajax({ @@ -102,7 +102,7 @@ jQuery(function($){ var datetime = new Date(item.datetime.replace(/-/g, "/")); var local_datetime = datetime.toLocaleDateString(undefined, {year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit"}); var service = '