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
1fee4f9a
Commit
1fee4f9a
authored
Apr 05, 2019
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_only_office] sync with new version rjs_schema_form
parent
9e06df17
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
51 deletions
+21
-51
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
+14
-35
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/remote_settings.js.js
...l_skins/erp5_only_office/onlyoffice/remote_settings.js.js
+7
-16
No files found.
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/olap_wizard.js.js
View file @
1fee4f9a
...
...
@@ -23,19 +23,7 @@
}
function
get_used_dimensions
(
g
)
{
var
q
;
if
(
g
.
props
.
init_value
)
{
q
=
RSVP
.
Queue
()
.
push
(
function
()
{
return
g
.
props
.
init_value
;
});
}
else
{
q
=
g
.
getDeclaredGadget
(
"
olap_wizard
"
)
.
push
(
function
(
gadget
)
{
return
gadget
.
getContent
();
});
}
return
q
return
g
.
getContent
()
.
push
(
function
(
v
)
{
var
dimensions
=
[],
key
,
...
...
@@ -109,7 +97,7 @@
}
queue
=
make_request
(
urls
[
0
])();
for
(
i
=
1
;
i
<
settings
.
urls
.
length
;
i
+=
1
)
{
for
(
i
=
1
;
i
<
urls
.
length
;
i
+=
1
)
{
queue
.
push
(
undefined
,
make_request
(
urls
[
i
]));
}
return
queue
;
...
...
@@ -336,22 +324,12 @@
});
})
.
declareMethod
(
"
render
"
,
function
(
opt
)
{
var
g
=
this
;
if
(
!
opt
)
{
opt
=
{};
}
g
.
props
.
init_value
=
opt
.
value
;
return
get_used_dimensions
(
g
)
.
push
(
function
(
v
)
{
g
.
props
.
used_dimensions
=
v
;
return
g
.
getDeclaredGadget
(
"
olap_wizard
"
);
})
return
this
.
getDeclaredGadget
(
"
olap_wizard
"
)
.
push
(
function
(
gadget
)
{
return
gadget
.
render
(
opt
);
})
.
push
(
function
()
{
delete
g
.
props
.
init_value
;
delete
g
.
props
.
used_dimensions
;
});
})
.
declareMethod
(
"
getContent
"
,
function
(
path
)
{
...
...
@@ -498,20 +476,21 @@
if
(
"
urn:jio:choice.json
"
===
url
)
{
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
g
.
getRemoteSettings
();
return
RSVP
.
all
([
g
.
getRemoteSettings
(),
g
.
getContent
(
"
/connection_name
"
),
g
.
getContent
(
path
),
get_used_dimensions
(
g
)
]);
})
.
push
(
function
(
connections
)
{
.
push
(
function
(
arr
)
{
var
connection_settings
,
choice_settings
;
if
(
g
.
props
.
init_value
)
{
connection_settings
=
connections
[
convertOnMultiLevel
(
g
.
props
.
init_value
,
"
/connection_name
"
)];
connection_settings
=
arr
[
0
][
arr
[
1
]];
if
(
path
!==
"
/columns/
"
&&
path
!==
"
/rows/
"
)
{
choice_settings
=
convertOnMultiLevel
(
g
.
props
.
init_value
,
path
);
}
return
generateChoiceSchema
(
connection_settings
,
g
.
props
.
used_dimensions
,
choice_settings
);
choice_settings
=
arr
[
2
];
}
return
{}
;
return
generateChoiceSchema
(
connection_settings
,
arr
[
3
],
choice_settings
)
;
});
}
throw
new
Error
(
"
urn: '
"
+
url
+
"
' not supported
"
);
...
...
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/remote_settings.js.js
View file @
1fee4f9a
...
...
@@ -216,19 +216,15 @@
})
.
declareMethod
(
"
render
"
,
function
(
opt
)
{
var
gadget
=
this
;
gadget
.
props
.
init_value
=
opt
.
value
;
return
gadget
.
getDeclaredGadget
(
"
xmla_settings
"
)
.
push
(
function
(
g
)
{
return
g
.
render
(
opt
);
})
.
push
(
function
()
{
delete
gadget
.
props
.
init_value
;
});
})
.
declareMethod
(
"
getContent
"
,
function
()
{
.
declareMethod
(
"
getContent
"
,
function
(
sub_path
)
{
return
this
.
getDeclaredGadget
(
"
xmla_settings
"
)
.
push
(
function
(
g
)
{
return
g
.
getContent
();
return
g
.
getContent
(
sub_path
);
});
})
.
declareAcquiredMethod
(
"
notifyChange
"
,
"
notifyChange
"
)
...
...
@@ -293,18 +289,13 @@
return
g
.
notifyChange
();
})
.
allowPublicAcquisition
(
"
resolveExternalReference
"
,
function
(
arr
)
{
var
g
=
this
,
url
=
arr
[
0
],
var
url
=
arr
[
0
],
schema_path
=
arr
[
1
],
path
=
arr
[
2
];
path
=
arr
[
2
],
connection_path
=
path
.
split
(
'
/
'
).
slice
(
0
,
-
1
).
join
(
'
/
'
);
if
(
"
urn:jio:properties_from_xmla.connection.json
"
===
url
)
{
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
var
connection_path
=
path
.
split
(
'
/
'
).
slice
(
0
,
-
1
).
join
(
'
/
'
),
settings
;
if
(
g
.
props
.
init_value
)
{
settings
=
convertOnMultiLevel
(
g
.
props
.
init_value
,
connection_path
);
}
return
this
.
getContent
(
connection_path
)
.
push
(
function
(
settings
)
{
return
generateSchema
(
settings
);
});
}
...
...
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