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
68466b10
Commit
68466b10
authored
May 03, 2019
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_only_office] olap_wizard form refactor before multi level implement
parent
8b5d0953
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
24 deletions
+31
-24
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/olap_wizard.js.js
...ortal_skins/erp5_only_office/onlyoffice/olap_wizard.js.js
+31
-24
No files found.
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/olap_wizard.js.js
View file @
68466b10
...
...
@@ -195,6 +195,10 @@
}
if
(
arr
[
2
]
&&
arr
[
2
].
length
!==
0
)
{
schema
.
properties
.
level
=
{
// type: "array",
// items: {
// oneOf: arr[2]
// }
title
:
"
"
,
oneOf
:
arr
[
2
]
};
...
...
@@ -202,7 +206,8 @@
return
schema
;
})
.
push
(
undefined
,
function
()
{
.
push
(
undefined
,
function
(
err
)
{
console
.
error
(
err
);
return
schema
;
});
}
...
...
@@ -258,6 +263,7 @@
used_hierarchy
,
url
=
arr
[
0
].
ref
,
allRerender
,
q
,
y
;
function
rerender
(
sub_scope
)
{
...
...
@@ -324,39 +330,40 @@
return
RSVP
.
all
(
g
.
props
.
choices
.
map
(
function
(
q
)
{
return
rerender
(
q
);
}));
})
.
push
(
function
()
{
return
g
.
notifyChange
();
});
};
if
(
"
urn:jio:remote_connections.json
"
===
url
)
{
return
allRerender
();
}
if
(
action
===
"
render
"
)
{
if
(
"
urn:jio:choice.json
"
===
url
)
{
g
.
props
.
choices
.
push
(
scope
);
}
// action `render` fake change so do nothing
return
;
}
// XXX action `render` fake change so do nothing
}
else
if
(
"
urn:jio:remote_connections.json
"
===
url
)
{
q
=
allRerender
();
}
else
{
for
(
y
=
0
;
y
<
g
.
props
.
choices
.
length
;
y
+=
1
)
{
s
=
g
.
props
.
choices
[
y
];
if
(
scope
.
startsWith
(
s
))
{
if
(
action
===
"
delete
"
)
{
g
.
props
.
choices
.
splice
(
y
,
1
);
return
allRerender
();
q
=
allRerender
();
}
else
if
(
relPath
===
"
/hierarchy
"
)
{
q
=
allRerender
();
}
else
{
q
=
rerender
(
s
);
}
}
}
if
(
relPath
===
"
/hierarchy
"
)
{
return
allRerender
();
}
return
rerender
(
s
)
if
(
q
)
{
return
q
.
push
(
function
()
{
return
g
.
notifyChange
();
})
.
push
(
undefined
,
function
(
err
)
{
console
.
log
(
err
);
});
}
}
return
g
.
notifyChange
();
})
.
allowPublicAcquisition
(
"
resolveExternalReference
"
,
function
(
arr
)
{
var
g
=
this
,
...
...
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