1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fixed spinner issue in inject node

This commit is contained in:
tjkoury 2014-05-19 15:38:07 -04:00
parent 74007f2ef4
commit 4f56f36cde

View File

@ -141,9 +141,7 @@
// seconds // seconds
step: 60 * 1000, step: 60 * 1000,
// hours // hours
page: 60, page: 60
min:0,
max:(23*60+59)*60*1000
}, },
_parse: function( value ) { _parse: function( value ) {
if ( typeof value === "string" ) { if ( typeof value === "string" ) {
@ -152,7 +150,7 @@
return Number( value ); return Number( value );
} }
var p = value.split(":"); var p = value.split(":");
return ((p[0]*60)+Number(p[1]))*60*1000; return ((Number(p[0])*60)+Number(p[1])+300)*60*1000;
} }
return value; return value;
}, },