From b1e3fc5761ed68616c7dd5d4fe4b241eee7f1149 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Thu, 23 Mar 2017 22:04:53 +0000 Subject: [PATCH] remove repeat symbol from inject if repeat is 0 --- 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 1c5bf295e..702b5308f 100644 --- a/nodes/core/core/20-inject.html +++ b/nodes/core/core/20-inject.html @@ -203,7 +203,7 @@ suffix = " ¹"; } // but replace with repeat one if set to repeat - if (this.repeat || this.crontab) { + if ((this.repeat && this.repeat != 0) || this.crontab) { suffix = " ↻"; } if (this.name) { @@ -270,7 +270,7 @@ }); $(".inject-time-times").each(function() { - for (var i=0;i<24;i++) { + for (var i=0; i<24; i++) { var l = (i<10?"0":"")+i+":00"; $(this).append($("").val(i).text(l)); } @@ -280,7 +280,7 @@ var start = Number($("#inject-time-interval-time-start").val()); var end = Number($("#inject-time-interval-time-end").val()); $("#inject-time-interval-time-end option").remove(); - for (var i=start+1;i<25;i++) { + for (var i=start+1; i<25; i++) { var l = (i<10?"0":"")+i+":00"; if (i==24) { l = "00:00";