From 79a37ab00c4b94bc9830740552526ff13637f80c Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Fri, 26 Dec 2014 16:51:33 +0100 Subject: [PATCH] Fixing loss of line width control in type field dropdown --- server/lib/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/server.js b/server/lib/server.js index 5488670a..a5fe935c 100644 --- a/server/lib/server.js +++ b/server/lib/server.js @@ -188,7 +188,7 @@ database.connect(function(err) { }, addType : function(data, callback) { - if(!utils.stripObject(data, { id: "number", name: "string", type: "string", fields: [ { name: "string", type: "string", default: "string", controlColour: "boolean", options: [ { key: "string", value: "string", colour: "string" } ] }] } )) + if(!utils.stripObject(data, { id: "number", name: "string", type: "string", fields: [ { name: "string", type: "string", default: "string", controlColour: "boolean", controlWidth: "boolean", options: [ { key: "string", value: "string", colour: "string", width: "number" } ] }] } )) return callback("Invalid parameters."); if(!socket.writable)