From 7eef45cd517924791e861e98496583606396cede Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Fri, 24 Mar 2017 09:23:28 +0100 Subject: [PATCH] Fixing countdown default time --- openslides/core/static/js/core/base.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openslides/core/static/js/core/base.js b/openslides/core/static/js/core/base.js index fcc8ac647..bb4edfbfe 100644 --- a/openslides/core/static/js/core/base.js +++ b/openslides/core/static/js/core/base.js @@ -1045,7 +1045,10 @@ angular.module('OpenSlidesApp.core', [ data = 0; if (time.length >= minLength) { for (var i = 0; i < minLength; i++) { - data = data*60 + (+time[i]); + data = data*60; + if (!isNaN(+time[i])) { + data += (+time[i]); + } } if (!params.seconds) { // the last field was minutes (e.g. h:mm) data *= 60;