Commit 8116ef49 authored by Boris Kocherov's avatar Boris Kocherov

render_selection() rename to render_enum()

parent c516bcd7
......@@ -90,7 +90,7 @@
return schema;
}
function render_selection(schema, json_document) {
function render_enum(schema, json_document) {
var input = document.createElement("select"),
option,
i,
......@@ -138,7 +138,7 @@
if (getDocumentType(schema.default) === "boolean") {
schema_for_selection.default = schema.default;
}
input = render_selection(schema_for_selection, json_document);
input = render_enum(schema_for_selection, json_document);
input.setAttribute('data-json-type', "boolean");
return input;
}
......@@ -707,7 +707,7 @@
div_input.setAttribute("class", "input");
if (json_field.enum !== undefined) {
input = render_selection(json_field, default_value);
input = render_enum(json_field, default_value);
}
if (type === "boolean") {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment