diff --git a/lib/functions.js b/lib/functions.js index ecc178696..45518c74e 100644 --- a/lib/functions.js +++ b/lib/functions.js @@ -74,8 +74,8 @@ $(document).ready(function () { }, function (start, end) { // Esegue il submit del periodo selezionato e ricarica la pagina - $.get(globals.rootdir + '/core.php?period_start=' + start.format('YYYY-MM-DD') + '&period_end=' + end.format('YYYY-MM-DD'), function () { - location.href = location.href; + $.get(globals.rootdir + '/core.php?period_start=' + start.format('YYYY-MM-DD') + '&period_end=' + end.format('YYYY-MM-DD'), function (data ) { + location.reload(); }); } );