From b76b506a353770ef5f9bb84e061338d5000f48d9 Mon Sep 17 00:00:00 2001 From: savvasha Date: Mon, 1 Oct 2018 10:09:22 +0300 Subject: [PATCH] Fix the "The Countdown timer does not show the first number in the DAY field" bug when the day was 3digits --- assets/js/sportspress.js | 2 +- templates/countdown.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/sportspress.js b/assets/js/sportspress.js index a71d371e..642a7c8d 100644 --- a/assets/js/sportspress.js +++ b/assets/js/sportspress.js @@ -42,7 +42,7 @@ function sp_viewport() { var seconds = Math.floor((distance % (1000 * 60)) / 1000); // Output the result - $this.html(""+('0' + days).slice(-2)+" " + localized_strings.days + " " + $this.html(""+('0' + days).slice(-3)+" " + localized_strings.days + " " + ""+('0' + hours).slice(-2)+" " + localized_strings.hrs + " " + ""+('0' + minutes).slice(-2)+" " + localized_strings.mins + " " + ""+('0' + seconds).slice(-2)+" " + localized_strings.secs + "" ); diff --git a/templates/countdown.php b/templates/countdown.php index 14b4e3be..f49e25ad 100644 --- a/templates/countdown.php +++ b/templates/countdown.php @@ -107,7 +107,7 @@ if ( $link_events ) $title = '