Merge pull request #3138 from FinnStutzenstein/CountdownBug

Fixing countdown default time
This commit is contained in:
Norman Jäckel 2017-03-24 14:50:35 +01:00 committed by GitHub
commit 4964c2e84e

View File

@ -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;