From ef0e74aacb68111994ef677d49c80c3b2177b86c Mon Sep 17 00:00:00 2001 From: Thomas Zilio Date: Fri, 15 Sep 2017 17:00:33 +0200 Subject: [PATCH] Fix del ricaricamento automatico da calendario --- lib/functions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }); } );