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
31278aa9
Commit
31278aa9
authored
Apr 23, 2019
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_only_office] jslint fix
parent
25a61b45
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/xmla_client.js.js
...ortal_skins/erp5_only_office/onlyoffice/xmla_client.js.js
+8
-9
No files found.
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/xmla_client.js.js
View file @
31278aa9
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
.
push
(
undefined
,
function
(
response
)
{
.
push
(
undefined
,
function
(
response
)
{
// fix mondrian Internal and Sql errors
// fix mondrian Internal and Sql errors
if
(
response
)
{
if
(
response
)
{
switch
(
response
[
"
code
"
]
)
{
switch
(
response
.
code
)
{
case
"
SOAP-ENV:Server.00HSBE02
"
:
case
"
SOAP-ENV:Server.00HSBE02
"
:
case
"
SOAP-ENV:00UE001.Internal Error
"
:
case
"
SOAP-ENV:00UE001.Internal Error
"
:
// rarely server error, so try again
// rarely server error, so try again
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
}
}
function
levelDiscovery
(
g
,
connection_name
,
row
)
{
function
levelDiscovery
(
g
,
connection_name
,
row
)
{
var
level_uname
=
row
[
"
LEVEL_UNIQUE_NAME
"
]
,
var
level_uname
=
row
.
LEVEL_UNIQUE_NAME
,
cache
=
g
.
props
.
cache
[
connection_name
],
cache
=
g
.
props
.
cache
[
connection_name
],
queue
,
queue
,
LEVEL_CARDINALITY
=
row
.
LEVEL_CARDINALITY
;
LEVEL_CARDINALITY
=
row
.
LEVEL_CARDINALITY
;
...
@@ -145,7 +145,7 @@
...
@@ -145,7 +145,7 @@
return
g
.
getRemoteSettings
()
return
g
.
getRemoteSettings
()
.
push
(
function
(
settings
)
{
.
push
(
function
(
settings
)
{
return
g
.
setConnectionsSettings
(
settings
);
return
g
.
setConnectionsSettings
(
settings
);
})
})
;
})
})
.
declareAcquiredMethod
(
"
getRemoteSettings
"
,
"
getRemoteSettings
"
)
.
declareAcquiredMethod
(
"
getRemoteSettings
"
,
"
getRemoteSettings
"
)
.
declareMethod
(
"
getConnectionSettings
"
,
function
(
name
)
{
.
declareMethod
(
"
getConnectionSettings
"
,
function
(
name
)
{
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
if
(
response
&&
response
.
numRows
>
0
)
{
if
(
response
&&
response
.
numRows
>
0
)
{
while
(
response
.
hasMoreRows
())
{
while
(
response
.
hasMoreRows
())
{
row
=
response
.
readAsObject
();
row
=
response
.
readAsObject
();
level_uname
=
row
[
"
LEVEL_UNIQUE_NAME
"
]
;
level_uname
=
row
.
LEVEL_UNIQUE_NAME
;
if
(
cache
.
levels
.
hasOwnProperty
(
level_uname
))
{
if
(
cache
.
levels
.
hasOwnProperty
(
level_uname
))
{
if
(
cache
.
levels
[
level_uname
].
hasOwnProperty
(
"
LEVEL_UNIQUE_NAME
"
))
{
if
(
cache
.
levels
[
level_uname
].
hasOwnProperty
(
"
LEVEL_UNIQUE_NAME
"
))
{
level
=
cache
.
levels
[
level_uname
];
level
=
cache
.
levels
[
level_uname
];
...
@@ -262,7 +262,7 @@
...
@@ -262,7 +262,7 @@
if
(
cache
.
membersOnLevel
.
hasOwnProperty
(
level_uname
))
{
if
(
cache
.
membersOnLevel
.
hasOwnProperty
(
level_uname
))
{
return
getFromCache
(
cache
.
membersOnLevel
,
level_uname
);
return
getFromCache
(
cache
.
membersOnLevel
,
level_uname
);
}
}
queue
=
request
(
g
,
"
discoverMDMembers
"
,
{
queue
=
request
(
g
,
"
discoverMDMembers
"
,
{
prop
:
{
prop
:
{
restrictions
:
{
restrictions
:
{
LEVEL_UNIQUE_NAME
:
level_uname
LEVEL_UNIQUE_NAME
:
level_uname
...
@@ -275,8 +275,8 @@
...
@@ -275,8 +275,8 @@
i
,
i
,
members
=
[];
members
=
[];
while
(
r
.
hasMoreRows
())
{
while
(
r
.
hasMoreRows
())
{
uname
=
r
[
"
getMemberUniqueName
"
]
();
uname
=
r
.
getMemberUniqueName
();
if
(
level_uname
!==
r
[
"
getLevelUniqueName
"
]
())
{
if
(
level_uname
!==
r
.
getLevelUniqueName
())
{
throw
"
xmla server fail
"
;
throw
"
xmla server fail
"
;
}
}
member
=
row2member
(
r
);
member
=
row2member
(
r
);
...
@@ -361,4 +361,3 @@
...
@@ -361,4 +361,3 @@
}(
window
,
rJS
));
}(
window
,
rJS
));
\ No newline at end of file
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