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
139
Merge Requests
139
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
0b9b83af
Commit
0b9b83af
authored
Sep 13, 2024
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: Translate the content of the Maximize button
Notably showned as a companion of the editor gadget
parent
afb0a546
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
8 deletions
+27
-8
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_babylonjs_gadget_js.js
...thTemplateItem/web_page_module/rjs_babylonjs_gadget_js.js
+3
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_babylonjs_gadget_js.xml
...hTemplateItem/web_page_module/rjs_babylonjs_gadget_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_button_maximize_html.html
...Item/web_page_module/rjs_gadget_button_maximize_html.html
+5
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_button_maximize_html.xml
...eItem/web_page_module/rjs_gadget_button_maximize_html.xml
+3
-3
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_button_maximize_js.js
...lateItem/web_page_module/rjs_gadget_button_maximize_js.js
+12
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_button_maximize_js.xml
...ateItem/web_page_module/rjs_gadget_button_maximize_js.xml
+2
-2
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_babylonjs_gadget_js.js
View file @
0b9b83af
...
...
@@ -335,6 +335,9 @@
scope
:
'
maximize
'
,
element
:
div_max
,
sandbox
:
'
public
'
})
.
push
(
function
(
button_maximize_gadget
)
{
return
button_maximize_gadget
.
render
();
});
})
.
declareMethod
(
'
getContent
'
,
function
getContent
()
{
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_babylonjs_gadget_js.xml
View file @
0b9b83af
...
...
@@ -246,7 +246,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
10
09.27442.40137.15394
</string>
</value>
<value>
<string>
10
17.65217.22701.26760
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -266,7 +266,7 @@
</tuple>
<state>
<tuple>
<float>
1
688063552.11
</float>
<float>
1
726209635.9
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_button_maximize_html.html
View file @
0b9b83af
...
...
@@ -6,6 +6,10 @@
<title>
ERP5 Button Maximize
</title>
<link
rel=
"http://www.renderjs.org/rel/interface"
href=
"interface_maximize_button.html"
>
<!--
data-i18n=Maximize
-->
<!-- renderjs -->
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
...
...
@@ -15,6 +19,6 @@
</head>
<body>
<button
class=
"ui-icon-expand ui-btn-icon-notext"
type=
"button"
>
Maximize
</button>
<button
class=
"ui-icon-expand ui-btn-icon-notext"
type=
"button"
data-i18n=
"Maximize"
>
Maximize
</button>
</body>
</html>
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_button_maximize_html.xml
View file @
0b9b83af
...
...
@@ -232,7 +232,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<
string>
zope
</string
>
</value>
<value>
<
unicode>
zope
</unicode
>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -246,7 +246,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
968.5552.51560.4432
2
</string>
</value>
<value>
<string>
1019.17688.2597.5758
2
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -266,7 +266,7 @@
</tuple>
<state>
<tuple>
<float>
1
536322858.1
</float>
<float>
1
726194811.78
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_button_maximize_js.js
View file @
0b9b83af
...
...
@@ -5,6 +5,18 @@
rJS
(
window
)
.
declareAcquiredMethod
(
'
triggerMaximize
'
,
'
triggerMaximize
'
)
.
declareAcquiredMethod
(
"
translate
"
,
"
translate
"
)
.
declareMethod
(
'
render
'
,
function
()
{
var
gadget
=
this
,
button_element
=
gadget
.
element
.
querySelector
(
"
button
"
);
return
gadget
.
translate
(
button_element
.
getAttribute
(
"
data-i18n
"
)
).
then
(
function
(
translation
)
{
button_element
.
textContent
=
translation
;
});
})
.
onEvent
(
'
click
'
,
function
(
event
)
{
if
(
event
.
target
.
tagName
===
"
BUTTON
"
)
{
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_button_maximize_js.xml
View file @
0b9b83af
...
...
@@ -244,7 +244,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
10
09.17156.6548.44731
</string>
</value>
<value>
<string>
10
19.17942.7601.18380
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -264,7 +264,7 @@
</tuple>
<state>
<tuple>
<float>
1
687447620.32
</float>
<float>
1
726209989.54
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
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