Commit f7d5a21f authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_web: input can be null also

parent 4465b69e
......@@ -400,7 +400,7 @@
function getSoftwareTypeFromForm(element) {\n
var input = element.querySelector(".slapos-software-type");\n
\n
if (input !== undefined) {\n
if (input !== undefined && input !== null) {\n
return input.value;\n
}\n
return "";\n
......@@ -409,7 +409,7 @@
function getSerialisationTypeFromForm(element) {\n
var input = element.querySelector(".slapos-serialisation-type");\n
\n
if (input !== undefined) {\n
if (input !== undefined && input !== null) {\n
return input.value;\n
}\n
return "";\n
......@@ -831,7 +831,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>941.57622.23194.30685</string> </value>
<value> <string>941.58456.37859.54289</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -849,7 +849,7 @@
</tuple>
<state>
<tuple>
<float>1427275105.86</float>
<float>1427289240.71</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