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