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
Carlos Ramos Carreño
slapos.core
Commits
390187bc
Commit
390187bc
authored
Apr 30, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_parameter_editor: coding style
parent
675cdf27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
19 deletions
+11
-19
master/bt5/slapos_parameter_editor/SkinTemplateItem/portal_skins/slapos_parameter_editor/gadget_erp5_page_slap_load_schema.js.js
..._parameter_editor/gadget_erp5_page_slap_load_schema.js.js
+10
-18
master/bt5/slapos_parameter_editor/SkinTemplateItem/portal_skins/slapos_parameter_editor/gadget_erp5_page_slap_parameter_form.js.js
...rameter_editor/gadget_erp5_page_slap_parameter_form.js.js
+1
-1
No files found.
master/bt5/slapos_parameter_editor/SkinTemplateItem/portal_skins/slapos_parameter_editor/gadget_erp5_page_slap_load_schema.js.js
View file @
390187bc
...
...
@@ -17,15 +17,12 @@
};
}
}
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
jIO
.
util
.
ajax
({
url
:
url
,
headers
:
headers
})
.
then
(
function
(
evt
)
{
return
evt
.
target
.
responseText
;
});
return
new
RSVP
.
Queue
(
jIO
.
util
.
ajax
({
url
:
url
,
headers
:
headers
}))
.
push
(
function
(
evt
)
{
return
evt
.
target
.
responseText
;
});
}
...
...
@@ -42,10 +39,7 @@
}
return
getJSON
(
meta_schema_url
)
.
push
(
function
(
meta_schema
)
{
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
$RefParser
.
dereference
(
url
);
})
return
new
RSVP
.
Queue
(
$RefParser
.
dereference
(
url
))
.
push
(
function
(
schema
)
{
var
validator
=
new
Validator
(
JSON
.
parse
(
meta_schema
),
'
7
'
);
if
(
!
validator
.
validate
(
schema
))
{
...
...
@@ -58,11 +52,9 @@
.
declareMethod
(
"
loadSoftwareJSON
"
,
function
(
url
)
{
return
getJSON
(
url
)
.
push
(
function
(
software_cfg_json
)
{
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
$RefParser
.
dereference
(
"
slapos_load_software_schema.json
"
);
})
return
new
RSVP
.
Queue
(
$RefParser
.
dereference
(
"
slapos_load_software_schema.json
"
)
)
.
push
(
function
(
software_schema
)
{
var
software_json
=
JSON
.
parse
(
software_cfg_json
),
validator
=
new
Validator
(
software_schema
,
'
7
'
);
...
...
master/bt5/slapos_parameter_editor/SkinTemplateItem/portal_skins/slapos_parameter_editor/gadget_erp5_page_slap_parameter_form.js.js
View file @
390187bc
...
...
@@ -462,7 +462,7 @@
show_form_button
.
classList
.
add
(
"
ui-icon-th-list
"
);
return
changed
;
})
.
fail
(
function
(
error
)
{
.
push
(
undefined
,
function
(
error
)
{
console
.
warn
(
error
);
console
.
log
(
error
.
stack
);
show_form_button
.
classList
.
remove
(
"
ui-icon-spinner
"
);
...
...
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