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
Lukas Niegsch
erp5
Commits
5f63dc1f
Commit
5f63dc1f
authored
May 06, 2022
by
Valentin Benozillo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: Define min and max to integer html field
Define min and max to integer html field
parent
6bb8d04e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
6 deletions
+16
-6
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_integerfield_js.js
...teItem/web_page_module/rjs_gadget_erp5_integerfield_js.js
+2
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_integerfield_js.xml
...eItem/web_page_module/rjs_gadget_erp5_integerfield_js.xml
+3
-3
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_input_js.js
...TemplateItem/web_page_module/rjs_gadget_html5_input_js.js
+8
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_input_js.xml
...emplateItem/web_page_module/rjs_gadget_html5_input_js.xml
+3
-3
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_integerfield_js.js
View file @
5f63dc1f
...
@@ -21,6 +21,8 @@
...
@@ -21,6 +21,8 @@
name
:
field_json
.
key
,
name
:
field_json
.
key
,
title
:
field_json
.
description
,
title
:
field_json
.
description
,
hidden
:
field_json
.
hidden
,
hidden
:
field_json
.
hidden
,
min
:
field_json
.
min
,
max
:
field_json
.
max
,
// Force calling subfield render
// Force calling subfield render
// as user may have modified the input value
// as user may have modified the input value
render_timestamp
:
new
Date
().
getTime
()
render_timestamp
:
new
Date
().
getTime
()
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_integerfield_js.xml
View file @
5f63dc1f
...
@@ -220,7 +220,7 @@
...
@@ -220,7 +220,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
valentin
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
88.26496.42040.8686
</string>
</value>
<value>
<string>
9
90.12355.17861.39304
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -252,7 +252,7 @@
...
@@ -252,7 +252,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16
09253348.53
</float>
<float>
16
51759968.58
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_input_js.js
View file @
5f63dc1f
...
@@ -34,6 +34,8 @@
...
@@ -34,6 +34,8 @@
hidden
:
options
.
hidden
,
hidden
:
options
.
hidden
,
trim
:
options
.
trim
||
false
,
trim
:
options
.
trim
||
false
,
maxlength
:
options
.
maxlength
,
maxlength
:
options
.
maxlength
,
min
:
options
.
min
,
max
:
options
.
max
,
multiple
:
options
.
multiple
,
multiple
:
options
.
multiple
,
accept
:
options
.
accept
,
accept
:
options
.
accept
,
capture
:
options
.
capture
,
capture
:
options
.
capture
,
...
@@ -93,6 +95,12 @@
...
@@ -93,6 +95,12 @@
if
(
this
.
state
.
maxlength
)
{
if
(
this
.
state
.
maxlength
)
{
textarea
.
setAttribute
(
'
maxlength
'
,
this
.
state
.
maxlength
);
textarea
.
setAttribute
(
'
maxlength
'
,
this
.
state
.
maxlength
);
}
}
if
(
this
.
state
.
min
!==
""
)
{
textarea
.
setAttribute
(
'
min
'
,
this
.
state
.
min
);
}
if
(
this
.
state
.
max
!==
""
)
{
textarea
.
setAttribute
(
'
max
'
,
this
.
state
.
max
);
}
if
(
this
.
state
.
multiple
)
{
if
(
this
.
state
.
multiple
)
{
textarea
.
multiple
=
true
;
textarea
.
multiple
=
true
;
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_input_js.xml
View file @
5f63dc1f
...
@@ -220,7 +220,7 @@
...
@@ -220,7 +220,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
valentin
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
990.28219.58167.35225
</string>
</value>
<value>
<string>
1000.3604.26762.29934
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -252,7 +252,7 @@
...
@@ -252,7 +252,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16
14695141.57
</float>
<float>
16
51848322.15
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</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