Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Léo-Paul Géneau
erp5
Commits
e3d5778b
Commit
e3d5778b
authored
Dec 02, 2019
by
Roque
Committed by
Roque
Dec 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: warmup common used gadgets in officejs apps
- do the calculations while officejs router set settings
parent
051678be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_router_js.js
...TemplateItem/web_page_module/gadget_officejs_router_js.js
+17
-3
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_router_js.xml
...emplateItem/web_page_module/gadget_officejs_router_js.xml
+2
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_router_js.js
View file @
e3d5778b
...
@@ -3,7 +3,17 @@
...
@@ -3,7 +3,17 @@
(
function
(
window
,
rJS
,
RSVP
)
{
(
function
(
window
,
rJS
,
RSVP
)
{
"
use strict
"
;
"
use strict
"
;
var
gadget_klass
=
rJS
(
window
)
var
warmup_gadget_done
=
false
,
warmup_list
=
[
'
gadget_erp5_label_field.html
'
,
'
gadget_translation.html
'
,
'
gadget_erp5_header.html
'
,
'
gadget_erp5_ojs_panel.html
'
,
'
gadget_html5_input.html
'
,
'
gadget_erp5_page_ojs_local_controller.html
'
,
'
gadget_officejs_common_util.html
'
],
gadget_klass
=
rJS
(
window
)
.
declareAcquiredMethod
(
'
setSettingList
'
,
'
setSettingList
'
)
.
declareAcquiredMethod
(
'
setSettingList
'
,
'
setSettingList
'
)
...
@@ -52,13 +62,17 @@
...
@@ -52,13 +62,17 @@
i
,
i
,
setting_dict
=
{},
setting_dict
=
{},
queue
=
new
RSVP
.
Queue
();
queue
=
new
RSVP
.
Queue
();
if
(
!
warmup_gadget_done
)
{
for
(
i
=
0
;
i
<
warmup_list
.
length
;
i
+=
1
)
{
rJS
.
declareGadgetKlass
(
rJS
.
getAbsoluteURL
(
warmup_list
[
i
],
gadget
.
__path
));
}
}
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
key
=
element_list
[
i
].
getAttribute
(
'
data-renderjs-configuration
'
);
key
=
element_list
[
i
].
getAttribute
(
'
data-renderjs-configuration
'
);
value
=
element_list
[
i
].
textContent
;
value
=
element_list
[
i
].
textContent
;
setting_dict
[
key
]
=
value
;
setting_dict
[
key
]
=
value
;
}
}
return
queue
return
queue
.
push
(
function
()
{
.
push
(
function
()
{
return
gadget
.
setSettingList
(
setting_dict
);
return
gadget
.
setSettingList
(
setting_dict
);
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_router_js.xml
View file @
e3d5778b
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
980.
6802.7091.54510
</string>
</value>
<value>
<string>
980.
13989.52038.29422
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -252,7 +252,7 @@
...
@@ -252,7 +252,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
157
4952936.12
</float>
<float>
157
5297418.87
</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