Commit 5adfb60f authored by Boris Kocherov's avatar Boris Kocherov

make code better understandable

parent 4b46b072
......@@ -340,7 +340,7 @@
});
}
function render_select_type(gadget, title, schema_arr, event, rerender) {
function render_schema_selector(gadget, title, schema_arr, event, rerender) {
return RSVP.Queue()
.push(function () {
var schema_alternatives = [],
......@@ -525,7 +525,7 @@
return expandSchema(gadget, item_schema, schema_path + '/items');
})
.push(function (schema_arr) {
return render_select_type(gadget, "add item to array",
return render_schema_selector(gadget, "add item to array",
schema_arr, function (value) {
return addSubForm({
gadget: gadget,
......@@ -753,7 +753,7 @@
return expandSchema(g, schema, schema_path + '/additionalProperties');
})
.push(function (schema_arr) {
return render_select_type(g, "add custom property", schema_arr, function (value) {
return render_schema_selector(g, "add custom property", schema_arr, function (value) {
return addSubForm({
gadget: g,
element: input,
......@@ -830,7 +830,7 @@
return expandProperties(g, json_field.properties, schema_path + '/properties/');
})
.push(function (schema_arr) {
return render_select_type(g, "add property", schema_arr, function (value) {
return render_schema_selector(g, "add property", schema_arr, function (value) {
used_properties[value.property_name] = "";
return addSubForm({
gadget: g,
......
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