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
Xiaowu Zhang
slapos.core
Commits
329ff483
Commit
329ff483
authored
Dec 21, 2021
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: Replace getAttachment to putAttachement
parent
504d008d
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
81 additions
and
59 deletions
+81
-59
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_network_js.js
...b_page_module/rjs_gadget_erp5_page_slap_add_network_js.js
+17
-11
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_network_js.xml
..._page_module/rjs_gadget_erp5_page_slap_add_network_js.xml
+2
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_organisation_js.js
...e_module/rjs_gadget_erp5_page_slap_add_organisation_js.js
+17
-11
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_organisation_js.xml
..._module/rjs_gadget_erp5_page_slap_add_organisation_js.xml
+3
-3
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_project_html.html
...ge_module/rjs_gadget_erp5_page_slap_add_project_html.html
+0
-1
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_project_html.xml
...age_module/rjs_gadget_erp5_page_slap_add_project_html.xml
+2
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_project_js.js
...b_page_module/rjs_gadget_erp5_page_slap_add_project_js.js
+17
-11
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_project_js.xml
..._page_module/rjs_gadget_erp5_page_slap_add_project_js.xml
+2
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_person_add_organisation_html.html
...s_gadget_erp5_page_slap_person_add_organisation_html.html
+0
-1
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_person_add_organisation_html.xml
...js_gadget_erp5_page_slap_person_add_organisation_html.xml
+2
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_person_add_organisation_js.js
...e/rjs_gadget_erp5_page_slap_person_add_organisation_js.js
+17
-11
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_person_add_organisation_js.xml
.../rjs_gadget_erp5_page_slap_person_add_organisation_js.xml
+2
-2
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_network_js.js
View file @
329ff483
/*global window, rJS, RSVP */
/*global window, rJS, RSVP
, jIO
*/
/*jslint nomen: true, indent: 2, maxerr: 3 */
/*jslint nomen: true, indent: 2, maxerr: 3 */
(
function
(
window
,
rJS
,
RSVP
)
{
(
function
(
window
,
rJS
,
RSVP
,
jIO
)
{
"
use strict
"
;
"
use strict
"
;
rJS
(
window
)
rJS
(
window
)
...
@@ -10,9 +10,10 @@
...
@@ -10,9 +10,10 @@
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
updatePanel
"
,
"
updatePanel
"
)
.
declareAcquiredMethod
(
"
updatePanel
"
,
"
updatePanel
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
getSettingList
"
,
"
getSettingList
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
jio_
getAttachment
"
,
"
jio_ge
tAttachment
"
)
.
declareAcquiredMethod
(
"
jio_
putAttachment
"
,
"
jio_pu
tAttachment
"
)
.
declareAcquiredMethod
(
"
notifySubmitting
"
,
"
notifySubmitting
"
)
.
declareAcquiredMethod
(
"
notifySubmitting
"
,
"
notifySubmitting
"
)
.
declareAcquiredMethod
(
"
notifySubmitted
"
,
'
notifySubmitted
'
)
.
declareAcquiredMethod
(
"
notifySubmitted
"
,
'
notifySubmitted
'
)
.
declareAcquiredMethod
(
"
getTranslationList
"
,
"
getTranslationList
"
)
.
declareAcquiredMethod
(
"
getTranslationList
"
,
"
getTranslationList
"
)
...
@@ -32,15 +33,20 @@
...
@@ -32,15 +33,20 @@
})
})
.
push
(
function
(
form_gadget
)
{
.
push
(
function
(
form_gadget
)
{
return
RSVP
.
all
([
form_gadget
.
getContent
(),
return
RSVP
.
all
([
form_gadget
.
getContent
(),
gadget
.
getSetting
(
'
me
'
)]);
gadget
.
getSetting
List
([
'
me
'
,
'
hateoas_url
'
]
)]);
})
})
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
doc
=
result
[
0
],
me
=
result
[
1
];
var
doc
=
result
[
0
],
return
gadget
.
getSetting
(
"
hateoas_url
"
)
me
=
result
[
1
][
0
],
.
push
(
function
(
url
)
{
url
=
result
[
1
][
1
];
return
gadget
.
jio_getAttachment
(
me
,
return
gadget
.
jio_putAttachment
(
me
,
url
+
me
+
"
/Person_requestNetwork?title=
"
+
doc
.
title
);
url
+
me
+
"
/Person_requestNetwork
"
,
{
title
:
doc
.
title
});
});
})
.
push
(
function
(
attachment
)
{
return
jIO
.
util
.
readBlobAsText
(
attachment
.
target
.
response
);
})
.
push
(
function
(
response
)
{
return
JSON
.
parse
(
response
.
target
.
result
);
})
})
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
return
gadget
.
notifySubmitted
({
message
:
gadget
.
message_translation
,
status
:
'
success
'
})
return
gadget
.
notifySubmitted
({
message
:
gadget
.
message_translation
,
status
:
'
success
'
})
...
@@ -124,4 +130,4 @@
...
@@ -124,4 +130,4 @@
});
});
});
});
});
});
}(
window
,
rJS
,
RSVP
));
}(
window
,
rJS
,
RSVP
,
jIO
));
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_network_js.xml
View file @
329ff483
...
@@ -279,7 +279,7 @@
...
@@ -279,7 +279,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
996.
48626.19826.13090
</string>
</value>
<value>
<string>
996.
64461.17044.24763
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -297,7 +297,7 @@
...
@@ -297,7 +297,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16
39166593.8
</float>
<float>
16
40118847.62
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_organisation_js.js
View file @
329ff483
/*global window, rJS, RSVP */
/*global window, rJS, RSVP
, jIO
*/
/*jslint nomen: true, indent: 2, maxerr: 3 */
/*jslint nomen: true, indent: 2, maxerr: 3 */
(
function
(
window
,
rJS
,
RSVP
)
{
(
function
(
window
,
rJS
,
RSVP
,
jIO
)
{
"
use strict
"
;
"
use strict
"
;
rJS
(
window
)
rJS
(
window
)
...
@@ -10,9 +10,10 @@
...
@@ -10,9 +10,10 @@
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
updatePanel
"
,
"
updatePanel
"
)
.
declareAcquiredMethod
(
"
updatePanel
"
,
"
updatePanel
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
getSettingList
"
,
"
getSettingList
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
jio_
getAttachment
"
,
"
jio_ge
tAttachment
"
)
.
declareAcquiredMethod
(
"
jio_
putAttachment
"
,
"
jio_pu
tAttachment
"
)
.
declareAcquiredMethod
(
"
notifySubmitting
"
,
"
notifySubmitting
"
)
.
declareAcquiredMethod
(
"
notifySubmitting
"
,
"
notifySubmitting
"
)
.
declareAcquiredMethod
(
"
notifySubmitted
"
,
'
notifySubmitted
'
)
.
declareAcquiredMethod
(
"
notifySubmitted
"
,
'
notifySubmitted
'
)
.
declareAcquiredMethod
(
"
getTranslationList
"
,
"
getTranslationList
"
)
.
declareAcquiredMethod
(
"
getTranslationList
"
,
"
getTranslationList
"
)
...
@@ -32,15 +33,20 @@
...
@@ -32,15 +33,20 @@
})
})
.
push
(
function
(
form_gadget
)
{
.
push
(
function
(
form_gadget
)
{
return
RSVP
.
all
([
form_gadget
.
getContent
(),
return
RSVP
.
all
([
form_gadget
.
getContent
(),
gadget
.
getSetting
(
'
me
'
)]);
gadget
.
getSetting
List
([
'
me
'
,
'
hateoas_url
'
]
)]);
})
})
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
doc
=
result
[
0
],
me
=
result
[
1
];
var
doc
=
result
[
0
],
return
gadget
.
getSetting
(
"
hateoas_url
"
)
me
=
result
[
1
][
0
],
.
push
(
function
(
url
)
{
url
=
result
[
1
][
1
];
return
gadget
.
jio_getAttachment
(
me
,
return
gadget
.
jio_putAttachment
(
me
,
url
+
me
+
"
/Person_requestSite?title=
"
+
doc
.
title
);
url
+
me
+
"
/Person_requestSite
"
,
{
title
:
doc
.
title
});
});
})
.
push
(
function
(
attachment
)
{
return
jIO
.
util
.
readBlobAsText
(
attachment
.
target
.
response
);
})
.
push
(
function
(
response
)
{
return
JSON
.
parse
(
response
.
target
.
result
);
})
})
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
return
gadget
.
notifySubmitted
({
message
:
gadget
.
message_translation
,
status
:
'
success
'
})
return
gadget
.
notifySubmitted
({
message
:
gadget
.
message_translation
,
status
:
'
success
'
})
...
@@ -128,4 +134,4 @@
...
@@ -128,4 +134,4 @@
});
});
});
});
});
});
}(
window
,
rJS
,
RSVP
));
}(
window
,
rJS
,
RSVP
,
jIO
));
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_organisation_js.xml
View file @
329ff483
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
SlapOS Add Organisation JS
</string>
</value>
<value>
<string>
SlapOS Add Organisation
Site
JS
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
url_string
</string>
</key>
<key>
<string>
url_string
</string>
</key>
...
@@ -290,7 +290,7 @@
...
@@ -290,7 +290,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
996.
47007.31595.62890
</string>
</value>
<value>
<string>
996.
64499.26395.1621
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -308,7 +308,7 @@
...
@@ -308,7 +308,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16
39070506.86
</float>
<float>
16
40118973.31
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_project_html.html
View file @
329ff483
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
<script
src=
"rsvp.js"
></script>
<script
src=
"rsvp.js"
></script>
<script
src=
"renderjs.js"
></script>
<script
src=
"renderjs.js"
></script>
<script
src=
"gadget_slapos_utils.js"
type=
"text/javascript"
></script>
<script
src=
"gadget_erp5_page_slap_add_project.js"
></script>
<script
src=
"gadget_erp5_page_slap_add_project.js"
></script>
</head>
</head>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_project_html.xml
View file @
329ff483
...
@@ -283,7 +283,7 @@
...
@@ -283,7 +283,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
99
4.61547.14201.59494
</string>
</value>
<value>
<string>
99
6.45665.13466.27972
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -301,7 +301,7 @@
...
@@ -301,7 +301,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16
38988872.3
1
</float>
<float>
16
40183877.2
1
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_project_js.js
View file @
329ff483
/*global window, rJS, RSVP
*/
/*global window, rJS, RSVP
, jIO
*/
/*jslint nomen: true, indent: 2, maxerr: 3 */
/*jslint nomen: true, indent: 2, maxerr: 3 */
(
function
(
window
,
rJS
,
RSVP
)
{
(
function
(
window
,
rJS
,
RSVP
,
jIO
)
{
"
use strict
"
;
"
use strict
"
;
rJS
(
window
)
rJS
(
window
)
...
@@ -10,9 +10,10 @@
...
@@ -10,9 +10,10 @@
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
updatePanel
"
,
"
updatePanel
"
)
.
declareAcquiredMethod
(
"
updatePanel
"
,
"
updatePanel
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
getSettingList
"
,
"
getSettingList
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
jio_
getAttachment
"
,
"
jio_ge
tAttachment
"
)
.
declareAcquiredMethod
(
"
jio_
putAttachment
"
,
"
jio_pu
tAttachment
"
)
.
declareAcquiredMethod
(
"
notifySubmitting
"
,
"
notifySubmitting
"
)
.
declareAcquiredMethod
(
"
notifySubmitting
"
,
"
notifySubmitting
"
)
.
declareAcquiredMethod
(
"
notifySubmitted
"
,
'
notifySubmitted
'
)
.
declareAcquiredMethod
(
"
notifySubmitted
"
,
'
notifySubmitted
'
)
.
declareAcquiredMethod
(
"
getTranslationList
"
,
"
getTranslationList
"
)
.
declareAcquiredMethod
(
"
getTranslationList
"
,
"
getTranslationList
"
)
...
@@ -32,15 +33,20 @@
...
@@ -32,15 +33,20 @@
})
})
.
push
(
function
(
form_gadget
)
{
.
push
(
function
(
form_gadget
)
{
return
RSVP
.
all
([
form_gadget
.
getContent
(),
return
RSVP
.
all
([
form_gadget
.
getContent
(),
gadget
.
getSetting
(
'
me
'
)]);
gadget
.
getSetting
List
([
'
me
'
,
'
hateoas_url
'
]
)]);
})
})
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
doc
=
result
[
0
],
me
=
result
[
1
];
var
doc
=
result
[
0
],
return
gadget
.
getSetting
(
"
hateoas_url
"
)
me
=
result
[
1
][
0
],
.
push
(
function
(
url
)
{
url
=
result
[
1
][
1
];
return
gadget
.
jio_getAttachment
(
me
,
return
gadget
.
jio_putAttachment
(
me
,
url
+
me
+
"
/Person_requestProject?title=
"
+
doc
.
title
);
url
+
me
+
"
/Person_requestProject
"
,
{
title
:
doc
.
title
});
});
})
.
push
(
function
(
attachment
)
{
return
jIO
.
util
.
readBlobAsText
(
attachment
.
target
.
response
);
})
.
push
(
function
(
response
)
{
return
JSON
.
parse
(
response
.
target
.
result
);
})
})
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
return
gadget
.
notifySubmitted
({
message
:
gadget
.
message_translation
,
status
:
'
success
'
})
return
gadget
.
notifySubmitted
({
message
:
gadget
.
message_translation
,
status
:
'
success
'
})
...
@@ -123,4 +129,4 @@
...
@@ -123,4 +129,4 @@
});
});
});
});
});
});
}(
window
,
rJS
,
RSVP
));
}(
window
,
rJS
,
RSVP
,
jIO
));
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_project_js.xml
View file @
329ff483
...
@@ -279,7 +279,7 @@
...
@@ -279,7 +279,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
996.456
61.39570.44526
</string>
</value>
<value>
<string>
996.456
81.58470.58709
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -297,7 +297,7 @@
...
@@ -297,7 +297,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16
38989873.52
</float>
<float>
16
40118896.01
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_person_add_organisation_html.html
View file @
329ff483
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
<script
src=
"rsvp.js"
></script>
<script
src=
"rsvp.js"
></script>
<script
src=
"renderjs.js"
></script>
<script
src=
"renderjs.js"
></script>
<script
src=
"gadget_slapos_utils.js"
type=
"text/javascript"
></script>
<script
src=
"gadget_erp5_page_slap_person_add_organisation.js"
></script>
<script
src=
"gadget_erp5_page_slap_person_add_organisation.js"
></script>
</head>
</head>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_person_add_organisation_html.xml
View file @
329ff483
...
@@ -281,7 +281,7 @@
...
@@ -281,7 +281,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
99
4.61547.14201.59494
</string>
</value>
<value>
<string>
99
6.45665.56224.23449
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -299,7 +299,7 @@
...
@@ -299,7 +299,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16
38988911.46
</float>
<float>
16
40183701.65
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_person_add_organisation_js.js
View file @
329ff483
/*global window, rJS, RSVP
*/
/*global window, rJS, RSVP
, jIO
*/
/*jslint nomen: true, indent: 2, maxerr: 3 */
/*jslint nomen: true, indent: 2, maxerr: 3 */
(
function
(
window
,
rJS
,
RSVP
)
{
(
function
(
window
,
rJS
,
RSVP
,
jIO
)
{
"
use strict
"
;
"
use strict
"
;
rJS
(
window
)
rJS
(
window
)
...
@@ -10,9 +10,10 @@
...
@@ -10,9 +10,10 @@
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
updatePanel
"
,
"
updatePanel
"
)
.
declareAcquiredMethod
(
"
updatePanel
"
,
"
updatePanel
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
getSettingList
"
,
"
getSettingList
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
jio_
getAttachment
"
,
"
jio_ge
tAttachment
"
)
.
declareAcquiredMethod
(
"
jio_
putAttachment
"
,
"
jio_pu
tAttachment
"
)
.
declareAcquiredMethod
(
"
notifySubmitting
"
,
"
notifySubmitting
"
)
.
declareAcquiredMethod
(
"
notifySubmitting
"
,
"
notifySubmitting
"
)
.
declareAcquiredMethod
(
"
notifySubmitted
"
,
'
notifySubmitted
'
)
.
declareAcquiredMethod
(
"
notifySubmitted
"
,
'
notifySubmitted
'
)
.
declareAcquiredMethod
(
"
getTranslationList
"
,
"
getTranslationList
"
)
.
declareAcquiredMethod
(
"
getTranslationList
"
,
"
getTranslationList
"
)
...
@@ -32,15 +33,20 @@
...
@@ -32,15 +33,20 @@
})
})
.
push
(
function
(
form_gadget
)
{
.
push
(
function
(
form_gadget
)
{
return
RSVP
.
all
([
form_gadget
.
getContent
(),
return
RSVP
.
all
([
form_gadget
.
getContent
(),
gadget
.
getSetting
(
'
me
'
)]);
gadget
.
getSetting
List
([
'
me
'
,
'
hateoas_url
'
]
)]);
})
})
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
doc
=
result
[
0
],
me
=
result
[
1
];
var
doc
=
result
[
0
],
return
gadget
.
getSetting
(
"
hateoas_url
"
)
me
=
result
[
1
][
0
],
.
push
(
function
(
url
)
{
url
=
result
[
1
][
1
];
return
gadget
.
jio_getAttachment
(
me
,
return
gadget
.
jio_putAttachment
(
me
,
url
+
me
+
"
/Person_requestOrganisation?title=
"
+
doc
.
title
);
url
+
me
+
"
/Person_requestOrganisation
"
,
{
title
:
doc
.
title
});
});
})
.
push
(
function
(
attachment
)
{
return
jIO
.
util
.
readBlobAsText
(
attachment
.
target
.
response
);
})
.
push
(
function
(
response
)
{
return
JSON
.
parse
(
response
.
target
.
result
);
})
})
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
return
gadget
.
notifySubmitted
({
message
:
gadget
.
message_translation
,
status
:
'
success
'
})
return
gadget
.
notifySubmitted
({
message
:
gadget
.
message_translation
,
status
:
'
success
'
})
...
@@ -127,4 +133,4 @@
...
@@ -127,4 +133,4 @@
});
});
});
});
});
});
}(
window
,
rJS
,
RSVP
));
}(
window
,
rJS
,
RSVP
,
jIO
));
\ No newline at end of file
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_person_add_organisation_js.xml
View file @
329ff483
...
@@ -288,7 +288,7 @@
...
@@ -288,7 +288,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
996.
45677.54455.28313
</string>
</value>
<value>
<string>
996.
64494.45558.13687
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -306,7 +306,7 @@
...
@@ -306,7 +306,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16
38989850.16
</float>
<float>
16
40191658.53
</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