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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Leymonerie
slapos.core
Commits
5c41ab13
Commit
5c41ab13
authored
May 06, 2022
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
slapos_jio: Fixup Rewrite Editor
See merge request
nexedi/slapos.core!383
parents
50215b31
a2d23e1a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
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
+2
-4
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 @
5c41ab13
...
...
@@ -434,7 +434,6 @@
return
""
;
}
/*
function
getSchemaUrlFromForm
(
element
)
{
var
input
=
element
.
querySelector
(
"
.parameter_schema_url
"
);
...
...
@@ -443,7 +442,6 @@
}
return
""
;
}
*/
function
showParameterForm
(
g
)
{
var
e
=
g
.
element
.
getElementsByTagName
(
'
select
'
)[
0
],
...
...
@@ -502,7 +500,7 @@
var
json_url
=
g
.
state
.
json_url
,
software_type
=
getSoftwareTypeFromForm
(
g
.
element
),
json_dict
=
getFormValuesAsJSONDict
(
g
.
element
),
//
schema_url = getSchemaUrlFromForm(g.element),
schema_url
=
getSchemaUrlFromForm
(
g
.
element
),
serialisation_type
=
getSerialisationTypeFromForm
(
g
.
element
);
if
(
software_type
===
""
)
{
...
...
@@ -514,7 +512,7 @@
return
g
.
getBaseUrl
(
json_url
)
.
push
(
function
(
base_url
)
{
return
g
.
validateJSON
(
base_url
,
json
_url
,
json_dict
);
return
g
.
validateJSON
(
base_url
,
schema
_url
,
json_dict
);
})
.
push
(
function
(
validation
)
{
var
error_index
,
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_parameter_form_js.xml
View file @
5c41ab13
...
...
@@ -280,7 +280,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
999.42820.18181.40192
</string>
</value>
<value>
<string>
1000.2322.46712.16657
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -298,7 +298,7 @@
</tuple>
<state>
<tuple>
<float>
165
0370742.0
</float>
<float>
165
1775757.92
</float>
<string>
UTC
</string>
</tuple>
</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