Commit bdc9c516 authored by Boris Kocherov's avatar Boris Kocherov

fields

parent 49b2716a
......@@ -450,7 +450,7 @@
a.setAttribute("href", "#" + errorUid);
a.text = errorId;
element.setAttribute("class", "error-input");
error_message = element.querySelector("#" + id.replace("/", "\\/") + " > .error");
error_message = element.querySelector("#" + id.replace(/\//g, "\\/") + " > .error");
error_message.appendChild(a);
error_message.setAttribute("id", errorUid);
if (error.message instanceof Array) {
......
......@@ -1205,10 +1205,16 @@
data_path = "/";
}
scope = path[key];
break;
}
}
}
}
if (scope === false) {
return document.getElementById(
g.element.getAttribute("data-gadget-scope") + '/' + key + '/'
);
}
if (scope) {
return g.getDeclaredGadget(scope)
.push(function (gadget) {
......
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