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
Hide 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 @@
...
@@ -195,6 +195,10 @@
}
}
if
(
arr
[
2
]
&&
arr
[
2
].
length
!==
0
)
{
if
(
arr
[
2
]
&&
arr
[
2
].
length
!==
0
)
{
schema
.
properties
.
level
=
{
schema
.
properties
.
level
=
{
// type: "array",
// items: {
// oneOf: arr[2]
// }
title
:
"
"
,
title
:
"
"
,
oneOf
:
arr
[
2
]
oneOf
:
arr
[
2
]
};
};
...
@@ -202,7 +206,8 @@
...
@@ -202,7 +206,8 @@
return
schema
;
return
schema
;
})
})
.
push
(
undefined
,
function
()
{
.
push
(
undefined
,
function
(
err
)
{
console
.
error
(
err
);
return
schema
;
return
schema
;
});
});
}
}
...
@@ -258,6 +263,7 @@
...
@@ -258,6 +263,7 @@
used_hierarchy
,
used_hierarchy
,
url
=
arr
[
0
].
ref
,
url
=
arr
[
0
].
ref
,
allRerender
,
allRerender
,
q
,
y
;
y
;
function
rerender
(
sub_scope
)
{
function
rerender
(
sub_scope
)
{
...
@@ -324,39 +330,40 @@
...
@@ -324,39 +330,40 @@
return
RSVP
.
all
(
g
.
props
.
choices
.
map
(
function
(
q
)
{
return
RSVP
.
all
(
g
.
props
.
choices
.
map
(
function
(
q
)
{
return
rerender
(
q
);
return
rerender
(
q
);
}));
}));
})
.
push
(
function
()
{
return
g
.
notifyChange
();
});
});
};
};
if
(
"
urn:jio:remote_connections.json
"
===
url
)
{
return
allRerender
();
}
if
(
action
===
"
render
"
)
{
if
(
action
===
"
render
"
)
{
if
(
"
urn:jio:choice.json
"
===
url
)
{
if
(
"
urn:jio:choice.json
"
===
url
)
{
g
.
props
.
choices
.
push
(
scope
);
g
.
props
.
choices
.
push
(
scope
);
}
}
// action `render` fake change so do nothing
// XXX action `render` fake change so do nothing
return
;
}
else
if
(
"
urn:jio:remote_connections.json
"
===
url
)
{
}
q
=
allRerender
();
for
(
y
=
0
;
y
<
g
.
props
.
choices
.
length
;
y
+=
1
)
{
}
else
{
s
=
g
.
props
.
choices
[
y
];
for
(
y
=
0
;
y
<
g
.
props
.
choices
.
length
;
y
+=
1
)
{
if
(
scope
.
startsWith
(
s
))
{
s
=
g
.
props
.
choices
[
y
];
if
(
action
===
"
delete
"
)
{
if
(
scope
.
startsWith
(
s
))
{
g
.
props
.
choices
.
splice
(
y
,
1
);
if
(
action
===
"
delete
"
)
{
return
allRerender
();
g
.
props
.
choices
.
splice
(
y
,
1
);
}
q
=
allRerender
();
if
(
relPath
===
"
/hierarchy
"
)
{
}
else
if
(
relPath
===
"
/hierarchy
"
)
{
return
allRerender
();
q
=
allRerender
();
}
else
{
q
=
rerender
(
s
);
}
}
}
return
rerender
(
s
)
.
push
(
function
()
{
return
g
.
notifyChange
();
});
}
}
}
}
return
g
.
notifyChange
();
if
(
q
)
{
return
q
.
push
(
function
()
{
return
g
.
notifyChange
();
})
.
push
(
undefined
,
function
(
err
)
{
console
.
log
(
err
);
});
}
})
})
.
allowPublicAcquisition
(
"
resolveExternalReference
"
,
function
(
arr
)
{
.
allowPublicAcquisition
(
"
resolveExternalReference
"
,
function
(
arr
)
{
var
g
=
this
,
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