From 38bce345954426eef40479fff2419e1da220a26d Mon Sep 17 00:00:00 2001 From: ubtest Date: Fri, 3 Mar 2017 23:35:03 -0800 Subject: [PATCH] add json type support --- public/javascripts/form.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/javascripts/form.js b/public/javascripts/form.js index 50a04fb5..aef53d14 100644 --- a/public/javascripts/form.js +++ b/public/javascripts/form.js @@ -187,6 +187,12 @@ $(document).ready(function() { paramReference.type = "string"; } + if (paramReference.type == "json") { + parameterOptions["type"] = "json"; + parameterOptions["cols"] = 20; + paramReference.type = "string"; + } + //Sets options to type boolean if (paramReference.type == "boolean") { parameterOptions["type"] = "select";