Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
c3608df3
Commit
c3608df3
authored
Apr 01, 2022
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: Minor code style change
parent
ee874ba1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_parameter_form_js.js
...age_module/rjs_gadget_erp5_page_slap_parameter_form_js.js
+6
-6
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_parameter_form_js.xml
...ge_module/rjs_gadget_erp5_page_slap_parameter_form_js.xml
+2
-2
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_parameter_form_js.js
View file @
c3608df3
...
@@ -105,7 +105,7 @@
...
@@ -105,7 +105,7 @@
input
.
size
=
1
;
input
.
size
=
1
;
option
.
value
=
""
;
option
.
value
=
""
;
if
(
default_value
===
undefined
)
{
if
(
default_value
===
undefined
)
{
option
.
selected
=
"
selected
"
;
option
.
selected
=
true
;
}
}
input
.
appendChild
(
option
);
input
.
appendChild
(
option
);
for
(
option_index
in
json_field
[
'
enum
'
])
{
for
(
option_index
in
json_field
[
'
enum
'
])
{
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
optionz
.
value
=
json_field
[
'
enum
'
][
option_index
];
optionz
.
value
=
json_field
[
'
enum
'
][
option_index
];
optionz
.
textContent
=
json_field
[
'
enum
'
][
option_index
];
optionz
.
textContent
=
json_field
[
'
enum
'
][
option_index
];
if
(
json_field
[
'
enum
'
][
option_index
]
===
default_value
)
{
if
(
json_field
[
'
enum
'
][
option_index
]
===
default_value
)
{
optionz
.
selected
=
"
selected
"
;
optionz
.
selected
=
true
;
}
}
input
.
appendChild
(
optionz
);
input
.
appendChild
(
optionz
);
}
}
...
@@ -129,7 +129,7 @@
...
@@ -129,7 +129,7 @@
input
.
size
=
1
;
input
.
size
=
1
;
option
.
value
=
""
;
option
.
value
=
""
;
if
(
default_value
===
undefined
)
{
if
(
default_value
===
undefined
)
{
option
.
selected
=
"
selected
"
;
option
.
selected
=
true
;
}
}
input
.
appendChild
(
option
);
input
.
appendChild
(
option
);
json_field
.
oneOf
.
forEach
(
function
(
element
,
index
)
{
json_field
.
oneOf
.
forEach
(
function
(
element
,
index
)
{
...
@@ -145,7 +145,7 @@
...
@@ -145,7 +145,7 @@
optionz
.
value
=
value
;
optionz
.
value
=
value
;
optionz
.
textContent
=
element
.
title
;
optionz
.
textContent
=
element
.
title
;
if
(
value
===
default_value
)
{
if
(
value
===
default_value
)
{
optionz
.
selected
=
"
selected
"
;
optionz
.
selected
=
true
;
}
}
input
.
appendChild
(
optionz
);
input
.
appendChild
(
optionz
);
}
}
...
@@ -839,7 +839,7 @@
...
@@ -839,7 +839,7 @@
if
(
option_index
===
lowest_option_index
)
{
if
(
option_index
===
lowest_option_index
)
{
option_selected
=
option
.
value
;
option_selected
=
option
.
value
;
option
.
selected
=
"
selected
"
;
option
.
selected
=
true
;
option_selected_index
=
option_index
;
option_selected_index
=
option_index
;
if
(
json
[
'
software-type
'
][
option_index
].
shared
===
true
)
{
if
(
json
[
'
software-type
'
][
option_index
].
shared
===
true
)
{
parameter_shared
.
value
=
true
;
parameter_shared
.
value
=
true
;
...
@@ -860,7 +860,7 @@
...
@@ -860,7 +860,7 @@
if
((
option_selected_index
===
undefined
)
&&
if
((
option_selected_index
===
undefined
)
&&
(
option
.
value
===
option_selected
)
&&
(
option
.
value
===
option_selected
)
&&
(
options
.
value
.
parameter
.
shared
==
json
[
'
software-type
'
][
option_index
].
shared
))
{
(
options
.
value
.
parameter
.
shared
==
json
[
'
software-type
'
][
option_index
].
shared
))
{
option
.
selected
=
"
selected
"
;
option
.
selected
=
true
;
option_selected_index
=
option_index
;
option_selected_index
=
option_index
;
if
(
json
[
'
software-type
'
][
option_index
].
shared
===
true
)
{
if
(
json
[
'
software-type
'
][
option_index
].
shared
===
true
)
{
parameter_shared
.
value
=
true
;
parameter_shared
.
value
=
true
;
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_parameter_form_js.xml
View file @
c3608df3
...
@@ -280,7 +280,7 @@
...
@@ -280,7 +280,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
999.160
34.63838.57002
</string>
</value>
<value>
<string>
999.160
78.15960.6348
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -298,7 +298,7 @@
...
@@ -298,7 +298,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1648
750934.27
</float>
<float>
1648
837055.39
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment