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
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
Léo-Paul Géneau
erp5
Commits
ae82df7e
Commit
ae82df7e
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
36 additions
and
11 deletions
+36
-11
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
+21
-3
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 @
ae82df7e
...
...
@@ -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 @
ae82df7e
...
...
@@ -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 @
ae82df7e
...
...
@@ -6,15 +6,19 @@
<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>
<script
src=
"domsugar.js"
></script>
<!-- custom script -->
<script
src=
"gadget_button_maximize.js"
type=
"text/javascript"
></script>
</head>
<body>
<button
class=
"ui-icon-expand ui-btn-icon-notext"
type=
"button"
>
Maximize
</button>
</body>
</html>
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_button_maximize_html.xml
View file @
ae82df7e
...
...
@@ -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.44322
</string>
</value>
<value>
<string>
1019.49777.15867.23517
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -266,7 +266,7 @@
</tuple>
<state>
<tuple>
<float>
1
536322858.1
</float>
<float>
1
728437604.68
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_button_maximize_js.js
View file @
ae82df7e
/*global window, rJS */
/*global window, rJS
, domsugar
*/
/*jslint indent: 2, maxerr: 3 */
(
function
(
window
,
rJS
)
{
(
function
(
window
,
rJS
,
domsugar
)
{
"
use strict
"
;
rJS
(
window
)
.
declareAcquiredMethod
(
'
triggerMaximize
'
,
'
triggerMaximize
'
)
.
declareAcquiredMethod
(
"
translate
"
,
"
translate
"
)
.
declareMethod
(
'
render
'
,
function
()
{
var
gadget
=
this
;
return
gadget
.
changeState
({
'
init
'
:
true
});
})
.
onStateChange
(
function
(
modification_dict
)
{
var
gadget
=
this
;
return
gadget
.
translate
(
"
Maximize
"
)
.
push
(
function
(
translation
)
{
return
gadget
.
element
.
appendChild
(
domsugar
(
"
button
"
,
{
"
class
"
:
"
ui-icon-expand ui-btn-icon-notext
"
,
"
type
"
:
"
button
"
,
"
text
"
:
translation
}));
});
})
.
onEvent
(
'
click
'
,
function
(
event
)
{
if
(
event
.
target
.
tagName
===
"
BUTTON
"
)
{
...
...
@@ -15,4 +33,4 @@
return
this
.
triggerMaximize
(
true
);
});
}(
window
,
rJS
));
\ No newline at end of file
}(
window
,
rJS
,
domsugar
));
\ No newline at end of file
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_button_maximize_js.xml
View file @
ae82df7e
...
...
@@ -244,7 +244,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
10
09.17156.6548.44731
</string>
</value>
<value>
<string>
10
19.59406.56317.53077
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -264,7 +264,7 @@
</tuple>
<state>
<tuple>
<float>
1
687447620.32
</float>
<float>
1
728611478.5
</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