From ecd834ffb638e96b7ccf0c48d6e5140147844308 Mon Sep 17 00:00:00 2001 From: Mokaddem Date: Tue, 16 Aug 2016 11:27:49 +0200 Subject: [PATCH] Added autoreload in sentiment-trending. --- var/www/templates/sentiment_analysis_trending.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/var/www/templates/sentiment_analysis_trending.html b/var/www/templates/sentiment_analysis_trending.html index b5be05e9..1f74f4a3 100644 --- a/var/www/templates/sentiment_analysis_trending.html +++ b/var/www/templates/sentiment_analysis_trending.html @@ -496,7 +496,8 @@ activePage = $('h1.page-header').attr('data-page'); $("#"+activePage).addClass("active"); - + // Reload every 30min + setTimeout(function(){ location.reload(); }, 30*60*1000); });