Commit ab126a64 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Load events and support number from json schema.

parent cfceef59
......@@ -168,6 +168,8 @@
if (json_field.type === "integer") {
input.type = "number";
} else if (json_field.type === "number") {
input.type = "number";
} else {
input.type = "text";
}
......@@ -372,6 +374,7 @@
} else {
$(element).addClass("slapos-parameter-dict-key-colapse");
}
console.log("COLLAPSED");
return element;
}
......@@ -426,6 +429,7 @@
}
for (i = 0; i < label_list.length; i = i + 1) {
console.log(i);
promise_list.push(loopEventListener(
label_list[i],
'click',
......@@ -783,7 +787,7 @@
var i, div_list = gadget.element.querySelectorAll('.slapos-parameter-dict-key > div'),
label_list = gadget.element.querySelectorAll('label.slapos-parameter-dict-key');
console.log("Collapse paramaters");
// console.log("Collapse paramaters");
for (i = 0; i < div_list.length; i = i + 1) {
$(div_list[i]).hide();
......@@ -794,9 +798,9 @@
}
return gadget;
})
.push(function () {
console.log("FINISHED TO RENDER, RETURNING THE GADGET");
return gadget;
.push(function (gadget) {
/* console.log("FINISHED TO RENDER, RETURNING THE GADGET"); */
return loadEventList(gadget);
})
.fail(function (error) {
......@@ -808,7 +812,7 @@
return gadget.renderFailoverTextArea(parameter_xml, error.toString())
.push(function () {
error = undefined;
return gadget;
return loadEventList(gadget);
});
});
})
......
......@@ -39,6 +39,17 @@
</tuple>
</value>
</item>
<item>
<key> <string>_Copy_or_Move_Permission</string> </key>
<value>
<list>
<string>Manager</string>
<string>Authenticated</string>
<string>Developer</string>
<string>Owner</string>
</list>
</value>
</item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
......@@ -75,6 +86,14 @@
<none/>
</value>
</item>
<item>
<key> <string>creators</string> </key>
<value>
<tuple>
<string>zope</string>
</tuple>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>gadget_erp5_page_slap_parameter_form.js</string> </value>
......@@ -93,6 +112,25 @@
<key> <string>language</string> </key>
<value> <string>en</string> </value>
</item>
<item>
<key> <string>modification_date</string> </key>
<value>
<object>
<klass>
<global name="DateTime" module="DateTime.DateTime"/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1523884648.42</float>
<string>UTC</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Web Script</string> </value>
......@@ -236,7 +274,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>966.29810.18989.64802</string> </value>
<value> <string>967.30809.39786.4795</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -254,7 +292,7 @@
</tuple>
<state>
<tuple>
<float>1522149313.98</float>
<float>1526066609.97</float>
<string>UTC</string>
</tuple>
</state>
......
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