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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
248e3520
Commit
248e3520
authored
Mar 04, 2020
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_manifest: add missing methods
parent
1ecf9e8a
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
187 additions
and
151 deletions
+187
-151
bt5/erp5_web_manifest/PathTemplateItem/web_page_module/gadget_manifest_js.js
...st/PathTemplateItem/web_page_module/gadget_manifest_js.js
+24
-0
bt5/erp5_web_manifest/PathTemplateItem/web_page_module/gadget_manifest_js.xml
...t/PathTemplateItem/web_page_module/gadget_manifest_js.xml
+163
-151
No files found.
bt5/erp5_web_manifest/PathTemplateItem/web_page_module/gadget_manifest_js.js
View file @
248e3520
...
...
@@ -288,6 +288,30 @@
}
return
param_list
;
})
.
allowPublicAcquisition
(
"
translate
"
,
function
(
param_list
)
{
if
(
this
.
setLanguage
)
{
return
this
.
getDeclaredGadget
(
"
translate
"
)
.
push
(
function
(
translation_gadget
)
{
return
translation_gadget
.
translate
.
apply
(
translation_gadget
,
param_list
);
});
}
return
param_list
;
})
.
allowPublicAcquisition
(
"
getTranslationList
"
,
function
(
param_list
)
{
if
(
this
.
setLanguage
)
{
return
this
.
getDeclaredGadget
(
"
translate
"
)
.
push
(
function
(
translation_gadget
)
{
return
translation_gadget
.
getTranslationList
.
apply
(
translation_gadget
,
param_list
);
});
}
return
param_list
;
})
.
allowPublicAcquisition
(
"
whoWantToDisplayThis
"
,
function
(
param_list
)
{
// Hey, I want to display some URL
...
...
bt5/erp5_web_manifest/PathTemplateItem/web_page_module/gadget_manifest_js.xml
View file @
248e3520
This diff is collapsed.
Click to expand it.
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