From dfc9e54a1ea56bf41e579fded141b62bf49f3f14 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 11 Aug 2019 18:35:17 +0200 Subject: [PATCH] Some fixes --- templates/base.html.twig | 2 ++ templates/fediplan/schedule.html.twig | 4 ++-- templates/fediplan/scheduled.html.twig | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/base.html.twig b/templates/base.html.twig index 3c7bac6..133bf1d 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -61,6 +61,8 @@ {% block javascripts %} + + {% endblock %} \ No newline at end of file diff --git a/templates/fediplan/schedule.html.twig b/templates/fediplan/schedule.html.twig index 2b2ce28..058a14e 100644 --- a/templates/fediplan/schedule.html.twig +++ b/templates/fediplan/schedule.html.twig @@ -456,12 +456,12 @@ var id = $(this).attr('data-id'); $('#media_container_' + id).remove(); }) - var language = navigator.languages && navigator.languages[0] || + /*var language = navigator.languages && navigator.languages[0] || navigator.language || navigator.userLanguage; var format = 'YYYY/MM/DD HH:mm:ss ZZ'; moment(time, format).tz(zone).format(format); - var currentDate = new Date().toLocaleString(language, { timeZone: timezone }) + var currentDate = new Date().toLocaleString(language, { timeZone: timezone })*/ }); {% endblock %} diff --git a/templates/fediplan/scheduled.html.twig b/templates/fediplan/scheduled.html.twig index 2714a78..e7b999d 100644 --- a/templates/fediplan/scheduled.html.twig +++ b/templates/fediplan/scheduled.html.twig @@ -65,7 +65,6 @@ .done(function(data) { $("#content").append(data.html); $('#loader').addClass("d-none"); - console.log( data); if( typeof data.html != "undefined" && data.html != "") { // $("#no_content").addClass("d-none"); }else{