Commit b285566d authored by Boris Kocherov's avatar Boris Kocherov

allow change value(json_docuement) without change schema, key, schema_url

parent a96c4468
...@@ -783,12 +783,18 @@ ...@@ -783,12 +783,18 @@
.declareMethod('render', function (options) { .declareMethod('render', function (options) {
var z = { var z = {
key: options.key,
schema: JSON.stringify(options.schema),
saveOrigValue: options.saveOrigValue, saveOrigValue: options.saveOrigValue,
schema_url: options.schema_url,
editable: options.editable === undefined ? true : options.editable editable: options.editable === undefined ? true : options.editable
}; };
if (options.hasOwnProperty("key")) {
z.key = options.key;
}
if (options.hasOwnProperty("schema")) {
z.schema = JSON.stringify(options.schema);
}
if (options.hasOwnProperty("schema_url")) {
z.schema_url = options.schema_url;
}
if (options.value !== undefined) { if (options.value !== undefined) {
z.value = JSON.stringify(options.value); z.value = JSON.stringify(options.value);
} }
......
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