Merge pull request #3138 from FinnStutzenstein/CountdownBug
Fixing countdown default time
This commit is contained in:
commit
4964c2e84e
@ -1045,7 +1045,10 @@ angular.module('OpenSlidesApp.core', [
|
|||||||
data = 0;
|
data = 0;
|
||||||
if (time.length >= minLength) {
|
if (time.length >= minLength) {
|
||||||
for (var i = 0; i < minLength; i++) {
|
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)
|
if (!params.seconds) { // the last field was minutes (e.g. h:mm)
|
||||||
data *= 60;
|
data *= 60;
|
||||||
|
Loading…
Reference in New Issue
Block a user