Commit e84b1df2 authored by Boris Kocherov's avatar Boris Kocherov

[erp5_only_office] cleanup wizard form

parent 9e9338c7
......@@ -264,37 +264,6 @@
});
}
function decodeJsonPointer(_str) {
// https://tools.ietf.org/html/rfc6901#section-5
return _str.replace(/~1/g, '/').replace(/~0/g, '~');
}
function convertOnMultiLevel(d, key, value) {
var ii,
kk,
prev_value,
key_list = key.split("/");
for (ii = 1; ii < key_list.length; ii += 1) {
kk = decodeJsonPointer(key_list[ii]);
if (ii === key_list.length - 1) {
if (value !== undefined) {
prev_value = d[kk];
d[kk] = value[0];
return prev_value;
}
return d[kk];
}
if (!d.hasOwnProperty(kk)) {
if (value !== undefined) {
d[kk] = {};
} else {
return;
}
}
d = d[kk];
}
}
rJS(window)
.ready(function (g) {
g.props = {};
......
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