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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sven Franck
erp5
Commits
59e32955
Commit
59e32955
authored
Jan 24, 2018
by
Vincent Bechu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_officejs] Limit parallel operation for chrome android in erp5 syncronization
parent
cfcd0b7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
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
+11
-8
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_erp5_configurator_js.xml
..._module/gadget_officejs_page_jio_erp5_configurator_js.xml
+2
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_erp5_configurator_js.js
View file @
59e32955
/*global window, rJS, RSVP, URI, location,
loopEventListener, btoa */
/*global window, rJS, RSVP, URI, navigator */
/*jslint nomen: true, indent: 2, maxerr: 3*/
(
function
(
window
,
rJS
,
RSVP
)
{
(
function
(
window
,
rJS
,
RSVP
,
URI
,
navigator
)
{
"
use strict
"
;
function
setjIOERP5Configuration
(
gadget
)
{
...
...
@@ -18,8 +17,12 @@
var
configuration
=
{},
portal_type
=
result
[
0
],
attachment_synchro
=
result
[
1
]
!==
""
,
extended_attachment_url
=
result
[
1
];
extended_attachment_url
=
result
[
1
],
// https://bugs.chromium.org/p/chromium/issues/detail?id=375297
// mobile device memory is limited for blob,
// we reach this limit with parallel operation.
is_low_memory
=
(
navigator
.
userAgent
.
indexOf
(
"
Chrome
"
)
>
0
)
&&
(
navigator
.
userAgent
.
indexOf
(
'
Mobile
'
)
>
0
);
configuration
=
{
type
:
"
replicate
"
,
// XXX This drop the signature lists...
...
...
@@ -30,8 +33,8 @@
},
use_remote_post
:
true
,
conflict_handling
:
1
,
parallel_operation_attachment_amount
:
10
,
parallel_operation_amount
:
10
,
parallel_operation_attachment_amount
:
is_low_memory
?
1
:
10
,
parallel_operation_amount
:
is_low_memory
?
1
:
10
,
// signature_hash_key: "modification_date",
check_local_attachment_modification
:
attachment_synchro
,
check_local_attachment_creation
:
attachment_synchro
,
...
...
@@ -233,4 +236,4 @@
});
});
}(
window
,
rJS
,
RSVP
));
}(
window
,
rJS
,
RSVP
,
URI
,
navigator
));
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_erp5_configurator_js.xml
View file @
59e32955
...
...
@@ -273,7 +273,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
4.45561.47559.9591
</string>
</value>
<value>
<string>
96
5.1757.48193.16793
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -291,7 +291,7 @@
</tuple>
<state>
<tuple>
<float>
151
5684256.0
4
</float>
<float>
151
6800617.4
4
</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