Change inject node to use tick boxes for days of week instead of select.

This commit is contained in:
dceejay
2015-02-03 11:21:29 +00:00
parent 5e5a220f68
commit 84e6417877
3 changed files with 465 additions and 400 deletions

View File

@@ -15,6 +15,7 @@
**/
module.exports = function(RED) {
"use strict";
var cron = require("cron");
function InjectNode(n) {
@@ -54,7 +55,7 @@ module.exports = function(RED) {
this.on("input",function(msg) {
var msg = {topic:this.topic};
if ( (this.payloadType == null && this.payload == "") || this.payloadType == "date") {
if ( (this.payloadType == null && this.payload === "") || this.payloadType === "date") {
msg.payload = Date.now();
} else if (this.payloadType == null || this.payloadType === "string") {
msg.payload = this.payload;