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
Yusei Tahara
erp5
Commits
f4cc7c84
Commit
f4cc7c84
authored
Mar 30, 2018
by
Valentin Benozillo
Committed by
Xiaowu Zhang
May 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_officejs] Configurator can take multiple portal_type
parent
a603cbfc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
10 deletions
+30
-10
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_erp5_configurator_html.html
...dule/gadget_officejs_page_jio_erp5_configurator_html.html
+1
-0
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_erp5_configurator_html.xml
...odule/gadget_officejs_page_jio_erp5_configurator_html.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_erp5_configurator_js.js
...e_module/gadget_officejs_page_jio_erp5_configurator_js.js
+24
-5
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_erp5_configurator_js.xml
..._module/gadget_officejs_page_jio_erp5_configurator_js.xml
+3
-3
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_erp5_configurator_html.html
View file @
f4cc7c84
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
<script
src=
"rsvp.js"
></script>
<script
src=
"rsvp.js"
></script>
<script
src=
"renderjs.js"
></script>
<script
src=
"renderjs.js"
></script>
<script
src=
"jiodev.js"
></script>
<script
src=
"gadget_erp5_page_ojs_erp5_configurator.js"
></script>
<script
src=
"gadget_erp5_page_ojs_erp5_configurator.js"
></script>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_erp5_configurator_html.xml
View file @
f4cc7c84
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
1.5989.20580.56712
</string>
</value>
<value>
<string>
96
5.42364.3970.61457
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -260,7 +260,7 @@
...
@@ -260,7 +260,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
15
01488569.98
</float>
<float>
15
25101566.57
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_erp5_configurator_js.js
View file @
f4cc7c84
/*global window, rJS, RSVP, URI, navigator */
/*global window, rJS, RSVP, URI,
SimpleQuery, ComplexQuery, Query,
navigator */
/*jslint nomen: true, indent: 2, maxerr: 3*/
/*jslint nomen: true, indent: 2, maxerr: 3*/
(
function
(
window
,
rJS
,
RSVP
,
URI
,
navigator
)
{
(
function
(
window
,
rJS
,
RSVP
,
URI
,
SimpleQuery
,
ComplexQuery
,
Query
,
navigator
)
{
"
use strict
"
;
"
use strict
"
;
function
setjIOERP5Configuration
(
gadget
)
{
function
setjIOERP5Configuration
(
gadget
)
{
...
@@ -15,19 +15,38 @@
...
@@ -15,19 +15,38 @@
})
})
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
configuration
=
{},
var
configuration
=
{},
portal_type
=
result
[
0
],
jio_query_list
=
[
],
attachment_synchro
=
result
[
1
]
!==
""
,
attachment_synchro
=
result
[
1
]
!==
""
,
extended_attachment_url
=
result
[
1
],
extended_attachment_url
=
result
[
1
],
portal_type
=
result
[
0
].
split
(
'
,
'
),
query
=
''
,
i
,
// https://bugs.chromium.org/p/chromium/issues/detail?id=375297
// https://bugs.chromium.org/p/chromium/issues/detail?id=375297
// mobile device memory is limited for blob,
// mobile device memory is limited for blob,
// we reach this limit with parallel operation.
// we reach this limit with parallel operation.
is_low_memory
=
(
navigator
.
userAgent
.
indexOf
(
"
Chrome
"
)
>
0
)
&&
is_low_memory
=
(
navigator
.
userAgent
.
indexOf
(
"
Chrome
"
)
>
0
)
&&
(
navigator
.
userAgent
.
indexOf
(
'
Mobile
'
)
>
0
);
(
navigator
.
userAgent
.
indexOf
(
'
Mobile
'
)
>
0
);
for
(
i
=
0
;
i
<
portal_type
.
length
;
i
+=
1
)
{
jio_query_list
.
push
(
new
SimpleQuery
({
key
:
"
portal_type
"
,
operator
:
""
,
type
:
"
simple
"
,
value
:
portal_type
[
i
]
}));
}
query
=
Query
.
objectToSearchText
(
new
ComplexQuery
({
operator
:
"
OR
"
,
query_list
:
jio_query_list
,
type
:
"
complex
"
}));
configuration
=
{
configuration
=
{
type
:
"
replicate
"
,
type
:
"
replicate
"
,
// XXX This drop the signature lists...
// XXX This drop the signature lists...
query
:
{
query
:
{
query
:
'
portal_type:"
'
+
portal_type
+
'
"
'
,
query
:
query
,
limit
:
[
0
,
50
],
limit
:
[
0
,
50
],
sort_on
:
[[
"
modification_date
"
,
"
descending
"
]]
sort_on
:
[[
"
modification_date
"
,
"
descending
"
]]
},
},
...
@@ -236,4 +255,4 @@
...
@@ -236,4 +255,4 @@
});
});
});
});
}(
window
,
rJS
,
RSVP
,
URI
,
navigator
));
}(
window
,
rJS
,
RSVP
,
URI
,
SimpleQuery
,
ComplexQuery
,
Query
,
navigator
));
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_erp5_configurator_js.xml
View file @
f4cc7c84
...
@@ -259,7 +259,7 @@
...
@@ -259,7 +259,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
vincent
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -273,7 +273,7 @@
...
@@ -273,7 +273,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
5.1757.48193.16793
</string>
</value>
<value>
<string>
96
7.13533.35763.57446
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -291,7 +291,7 @@
...
@@ -291,7 +291,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
15
16800617.44
</float>
<float>
15
25102062.15
</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