-
-
{{object_class}}
-
-
- {% for obj in object_list %}
-
-
-
-
{{obj.description}}
-
+
+
+
{{object_class}}
+
+
+ {% for obj in object_list %}
+
+
+
{{obj.description}}
+
+
+
+ {% endfor %}
-
-
- {% endfor %}
-
{% endfor %}
@@ -189,8 +191,7 @@ function markAndSweep(root){
//clears grey background of everything
}
- toCheck = [];
- toCheck.push(root);
+ toCheck = [root];
while(toCheck.length > 0){
node = toCheck.pop();
@@ -289,8 +290,7 @@ function processClick(id, multiple){
if(node['selected']) {
select(node);
- }
- else {
+ } else {
clear(node);
}
process(node);
@@ -309,16 +309,12 @@ function add_node(node){
inputs = []
-function restrictchars(input)
-{
- if( input.validity.patternMismatch )
- {
+function restrictchars(input){
+ if( input.validity.patternMismatch ){
input.setCustomValidity("Only alphanumeric characters (a-z, A-Z, 0-9), underscore(_), and hyphen (-) are allowed");
input.reportValidity();
}
-
input.value = input.value.replace(/([^A-Za-z0-9-_.])+/g, "");
-
checkunique(input);
}
@@ -419,13 +415,13 @@ function updateResult(nodeId){
var node = document.getElementById(nodeId);
var value = {}
value[nodeId] = node.parentNode.getElementsByTagName("input")[0].value;
- result[node.parentNode.parentNode.id] = {};
- result[node.parentNode.parentNode.id][nodeId] = value;
+ result[node.parentNode.id] = {};
+ result[node.parentNode.id][nodeId] = value;
}
}
function updateObjectResult(parentElem){
- node_type = document.getElementById(parentElem.class).parentNode.parentNode.id;
+ node_type = document.getElementById(parentElem.class).parentNode.id;
input = {};
inputs = parentElem.getElementsByTagName("input");
for(var i in inputs){
@@ -439,7 +435,7 @@ function filter_field_init() {
for(nodeId in filter_items) {
element = document.getElementById(nodeId);
node = filter_items[nodeId];
- result[element.parentNode.parentNode.id] = {}
+ result[element.parentNode.id] = {}
}
initialized = true;
}