Commit fc90cdb6 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: call getContent after render the form

  This trigger validator to display error messages.

  This change isn't ideal, but this is minimal before a major refactoring
parent d273f1dc
...@@ -919,8 +919,6 @@ ...@@ -919,8 +919,6 @@
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");
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();
} }
...@@ -928,6 +926,7 @@ ...@@ -928,6 +926,7 @@
for (i = 0; i < label_list.length; i = i + 1) { for (i = 0; i < label_list.length; i = i + 1) {
$(label_list[i]).addClass("slapos-parameter-dict-key-colapse"); $(label_list[i]).addClass("slapos-parameter-dict-key-colapse");
} }
return gadget.getContent();
}) })
.fail(function (error) { .fail(function (error) {
......
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