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
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roque
erp5
Commits
e19a7a87
Commit
e19a7a87
authored
Jul 17, 2019
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: restoring tales expression on portal actions
- minor configuration item on controller
parent
6c8a49a2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
6 deletions
+10
-6
bt5/erp5_officejs/ActionTemplateItem/portal_types/Web%20Page%20Module/text_editor_view.xml
...tem/portal_types/Web%20Page%20Module/text_editor_view.xml
+1
-1
bt5/erp5_officejs/ActionTemplateItem/portal_types/Web%20Page/text_editor_clone.xml
...emplateItem/portal_types/Web%20Page/text_editor_clone.xml
+1
-1
bt5/erp5_officejs/ActionTemplateItem/portal_types/Web%20Page/text_editor_view.xml
...TemplateItem/portal_types/Web%20Page/text_editor_view.xml
+1
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_common_utils_js.js
...teItem/web_page_module/gadget_officejs_common_utils_js.js
+3
-0
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_controller_page_local_controller_js.js
...le/gadget_officejs_controller_page_local_controller_js.js
+3
-3
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_text_editor_router_html.html
..._page_module/gadget_officejs_text_editor_router_html.html
+1
-0
No files found.
bt5/erp5_officejs/ActionTemplateItem/portal_types/Web%20Page%20Module/text_editor_view.xml
View file @
e19a7a87
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
text
</string>
</key>
<key>
<string>
text
</string>
</key>
<value>
<string>
portal_skins/erp5_web_officejs_ui
/WebPageModule_viewWebPageListAsJio
</string>
</value>
<value>
<string>
string:${object_url}
/WebPageModule_viewWebPageListAsJio
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
bt5/erp5_officejs/ActionTemplateItem/portal_types/Web%20Page/text_editor_clone.xml
View file @
e19a7a87
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
text
</string>
</key>
<key>
<string>
text
</string>
</key>
<value>
<string>
portal_skins/erp5_web_officejs_ui
/TextEditor_cloneDocument
</string>
</value>
<value>
<string>
string:${object_url}
/TextEditor_cloneDocument
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
bt5/erp5_officejs/ActionTemplateItem/portal_types/Web%20Page/text_editor_view.xml
View file @
e19a7a87
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
text
</string>
</key>
<key>
<string>
text
</string>
</key>
<value>
<string>
portal_skins/erp5_web_officejs_ui
/WebPage_viewAsTextDocument
</string>
</value>
<value>
<string>
string:${object_url}
/WebPage_viewAsTextDocument
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_common_utils_js.js
View file @
e19a7a87
...
@@ -228,6 +228,9 @@
...
@@ -228,6 +228,9 @@
.
push
(
function
(
action_result
)
{
.
push
(
function
(
action_result
)
{
action_title
=
action_result
.
title
;
action_title
=
action_result
.
title
;
action_type
=
action_result
.
action_type
;
action_type
=
action_result
.
action_type
;
if
(
action_result
.
action
.
includes
(
"
string:${object_url}
"
))
{
action_result
.
action
=
action_result
.
action
.
replace
(
"
string:${object_url}
"
,
"
portal_skins/erp5_web_officejs_ui
"
);
}
return
gadget
.
jio_get
(
action_result
.
action
);
return
gadget
.
jio_get
(
action_result
.
action
);
})
})
.
push
(
function
(
form_result
)
{
.
push
(
function
(
form_result
)
{
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_controller_page_local_controller_js.js
View file @
e19a7a87
...
@@ -26,8 +26,6 @@
...
@@ -26,8 +26,6 @@
/////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
.
declareMethod
(
"
render
"
,
function
(
options
)
{
.
declareMethod
(
"
render
"
,
function
(
options
)
{
//TODO: set this in site configuration
options
.
editable
=
true
;
var
gadget
=
this
,
var
gadget
=
this
,
default_view
,
default_view
,
app_view
,
app_view
,
...
@@ -41,13 +39,15 @@
...
@@ -41,13 +39,15 @@
return
RSVP
.
all
([
return
RSVP
.
all
([
gadget
.
declareGadget
(
"
gadget_officejs_common_utils.html
"
),
gadget
.
declareGadget
(
"
gadget_officejs_common_utils.html
"
),
gadget
.
getSetting
(
'
app_view_reference
'
),
gadget
.
getSetting
(
'
app_view_reference
'
),
gadget
.
getSetting
(
'
default_view_reference
'
)
gadget
.
getSetting
(
'
default_view_reference
'
),
gadget
.
getSetting
(
'
documents_editable
'
)
]);
]);
})
})
.
push
(
function
(
result_list
)
{
.
push
(
function
(
result_list
)
{
gadget_utils
=
result_list
[
0
];
gadget_utils
=
result_list
[
0
];
app_view
=
options
.
action
||
result_list
[
1
];
app_view
=
options
.
action
||
result_list
[
1
];
default_view
=
result_list
[
2
];
default_view
=
result_list
[
2
];
options
.
editable
=
((
result_list
[
3
]
==
"
1
"
)
?
true
:
options
.
editable
);
return
gadget
.
jio_get
(
options
.
jio_key
);
return
gadget
.
jio_get
(
options
.
jio_key
);
})
})
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_text_editor_router_html.html
View file @
e19a7a87
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
<script
data-renderjs-configuration=
"parent_portal_type"
type=
"text/x-renderjs-configuration"
>
Web
Page
Module
</script>
<script
data-renderjs-configuration=
"parent_portal_type"
type=
"text/x-renderjs-configuration"
>
Web
Page
Module
</script>
<script
data-renderjs-configuration=
"parent_relative_url"
type=
"text/x-renderjs-configuration"
>
web_page_module
</script>
<script
data-renderjs-configuration=
"parent_relative_url"
type=
"text/x-renderjs-configuration"
>
web_page_module
</script>
<script
data-renderjs-configuration=
"hide_listbox_buttons"
type=
"text/x-renderjs-configuration"
>
1
</script>
<script
data-renderjs-configuration=
"hide_listbox_buttons"
type=
"text/x-renderjs-configuration"
>
1
</script>
<script
data-renderjs-configuration=
"documents_editable"
type=
"text/x-renderjs-configuration"
>
1
</script>
<script
data-renderjs-configuration=
"erp5_attachment_synchro"
type=
"text/x-renderjs-configuration"
></script>
<script
data-renderjs-configuration=
"erp5_attachment_synchro"
type=
"text/x-renderjs-configuration"
></script>
<script
data-renderjs-configuration=
"dropbox_app_key"
type=
"text/x-renderjs-configuration"
>
n692ixxhyg9zhqs
</script>
<script
data-renderjs-configuration=
"dropbox_app_key"
type=
"text/x-renderjs-configuration"
>
n692ixxhyg9zhqs
</script>
<div
data-gadget-url=
"gadget_erp5_router.html"
data-gadget-scope=
"erp5_router"
></div>
<div
data-gadget-url=
"gadget_erp5_router.html"
data-gadget-scope=
"erp5_router"
></div>
...
...
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