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
16
Merge Requests
16
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
09e6d89c
Commit
09e6d89c
authored
May 28, 2020
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: Allow sites to custom the return page where the user will be driven into after payment
parent
e9dacdb7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_payment_result_js.js
...em/web_page_module/rjs_gadget_slapos_payment_result_js.js
+8
-3
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_payment_result_js.xml
...m/web_page_module/rjs_gadget_slapos_payment_result_js.xml
+3
-3
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_payment_result_js.js
View file @
09e6d89c
...
...
@@ -22,13 +22,19 @@
return
{};
})
.
declareMethod
(
"
render
"
,
function
(
options
)
{
var
gadget
=
this
;
var
gadget
=
this
,
return_page
=
options
.
return_page
;
if
(
return_page
===
undefined
)
{
return_page
=
"
slap_invoice_list
"
;
}
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
RSVP
.
all
([
gadget
.
getElement
(),
gadget
.
getUrlFor
({
command
:
'
change
'
,
options
:
{
jio_key
:
"
/
"
,
page
:
"
slap_invoice_list
"
,
"
result
"
:
""
}})
options
:
{
jio_key
:
"
/
"
,
page
:
return_page
,
"
result
"
:
""
}})
]);
})
.
push
(
function
(
result
)
{
...
...
@@ -65,7 +71,6 @@
}
else
{
throw
new
Error
(
"
Unknown action to take:
"
+
options
.
result
);
}
console
.
log
(
options
);
element
.
innerHTML
=
message_template
({
message_to_acknowledge
:
message
,
advice
:
advice
,
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_payment_result_js.xml
View file @
09e6d89c
...
...
@@ -99,7 +99,7 @@
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Gadget SlapOS
Site invoice State
</string>
</value>
<value>
<string>
Gadget SlapOS
Payment Result JS
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
...
...
@@ -231,7 +231,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
64.64933.61168.51421
</string>
</value>
<value>
<string>
9
84.11864.24475.17493
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -249,7 +249,7 @@
</tuple>
<state>
<tuple>
<float>
15
16648704.86
</float>
<float>
15
90639279.1
</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