From 0658b70631cf3477d3d1423d2ea7da5a57f400a4 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 29 May 2015 22:28:42 +0100 Subject: [PATCH] Inject node not parsing 0-23 hour range correctly --- nodes/core/core/20-inject.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nodes/core/core/20-inject.html b/nodes/core/core/20-inject.html index bd3fbbe48..5137e9eda 100644 --- a/nodes/core/core/20-inject.html +++ b/nodes/core/core/20-inject.html @@ -223,7 +223,7 @@ $(this).append($("").val(i).text(l)); } }); - + $("").val(24).text("00:00").appendTo("#inject-time-interval-time-end"); $("#inject-time-interval-time-start").change(function() { var start = Number($("#inject-time-interval-time-start option:selected").val()); var end = Number($("#inject-time-interval-time-end option:selected").val()); @@ -337,7 +337,7 @@ } } else { start = hours[0]; - end = (Number(hours[1])+1)%24; + end = Number(hours[1])+1; } } else { // 23,0 or 17-23,0-10 or 23,0-2 or 17-23,0 @@ -351,8 +351,8 @@ end = Number(endparts[1])+1; } } - $("#inject-time-interval-time-start option").filter(function() {return $(this).val() == start;}).attr('selected',true); $("#inject-time-interval-time-end option").filter(function() {return $(this).val() == end;}).attr('selected',true); + $("#inject-time-interval-time-start option").filter(function() {return $(this).val() == start;}).attr('selected',true); } } else {