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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
erp5
Commits
cf64f37d
Commit
cf64f37d
authored
Jan 08, 2017
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: support multiple versions has been added in application installer
parent
f26f409c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_install_js.js
...emplateItem/web_page_module/gadget_officejs_install_js.js
+17
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_install_js.xml
...mplateItem/web_page_module/gadget_officejs_install_js.xml
+2
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_install_js.js
View file @
cf64f37d
...
...
@@ -14,6 +14,21 @@ var repair = false;
});
function
createStorage
(
version
)
{
var
i
,
version_list
,
version_query
;
if
(
version
.
indexOf
(
"
,
"
)
!==
-
1
)
{
version_list
=
version
.
split
(
'
,
'
);
version_query
=
[];
for
(
i
=
1
;
i
<
version_list
.
length
;
i
+=
1
)
{
version_query
.
push
(
'
"
'
+
version_list
[
i
]
+
'
"
'
);
}
version_query
.
join
(
'
,
'
);
version_query
=
'
(version: "
'
+
version_list
[
0
]
+
'
" OR ((NOT url_string: "/") AND (version: (
'
+
version_query
+
'
))))
'
;
}
else
{
version_query
=
'
version: "
'
+
version
+
'
"
'
;
}
return
jIO
.
createJIO
({
type
:
"
replicate
"
,
conflict_handling
:
2
,
...
...
@@ -25,7 +40,7 @@ var repair = false;
query
:
{
query
:
'
portal_type: ("Web Illustration",
'
+
'
"Web Manifest","Web Script","Web Style","Web Page")
'
+
'
AND
version:"
'
+
version
+
'
"
'
,
'
AND
'
+
version_query
,
"
limit
"
:
[
0
,
27131
],
"
select_list
"
:
[
"
url_string
"
]
},
...
...
@@ -237,7 +252,7 @@ var repair = false;
url_list
[
i
]
!==
""
&&
url_list
[
i
].
charAt
(
0
)
!==
'
#
'
&&
url_list
[
i
].
charAt
(
0
)
!==
'
'
)
{
url_list
[
i
].
replace
(
"
\r
"
,
""
);
url_list
[
i
].
replace
(
"
\r
"
,
""
);
gadget
.
props
.
cached_url
.
push
(
url_list
[
i
]);
}
if
(
url_list
[
i
].
indexOf
(
"
CACHE:
"
)
>=
0
)
{
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_install_js.xml
View file @
cf64f37d
...
...
@@ -222,7 +222,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
956.
5849.44474.42086
</string>
</value>
<value>
<string>
956.
26444.19522.39458
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -240,7 +240,7 @@
</tuple>
<state>
<tuple>
<float>
148
2259856.41
</float>
<float>
148
3486820.92
</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