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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Georgios Dagkakis
erp5
Commits
31eee0b3
Commit
31eee0b3
authored
Sep 05, 2023
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: Use autocomplete attribute in stringfield, passwordfield and listfield
parent
8061d311
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
0 deletions
+13
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listfield_js.js
...plateItem/web_page_module/rjs_gadget_erp5_listfield_js.js
+1
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_passwordfield_js.js
...eItem/web_page_module/rjs_gadget_erp5_passwordfield_js.js
+1
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_stringfield_js.js
...ateItem/web_page_module/rjs_gadget_erp5_stringfield_js.js
+1
-0
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
+5
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_select_js.js
...emplateItem/web_page_module/rjs_gadget_html5_select_js.js
+5
-0
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listfield_js.js
View file @
31eee0b3
...
...
@@ -24,6 +24,7 @@
first_item
:
field_json
.
first_item
,
hidden
:
field_json
.
hidden
,
error_text
:
field_json
.
error_text
,
autocomplete
:
field_json
.
autocomplete
,
// Force calling subfield render
// as user may have modified the input value
render_timestamp
:
new
Date
().
getTime
()
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_passwordfield_js.js
View file @
31eee0b3
...
...
@@ -19,6 +19,7 @@
title
:
field_json
.
description
,
type
:
'
password
'
,
hidden
:
field_json
.
hidden
,
autocomplete
:
field_json
.
autocomplete
,
// Force calling subfield render
// as user may have modified the input value
render_timestamp
:
new
Date
().
getTime
()
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_stringfield_js.js
View file @
31eee0b3
...
...
@@ -19,6 +19,7 @@
error_text
:
field_json
.
error_text
,
title
:
field_json
.
description
,
hidden
:
field_json
.
hidden
,
autocomplete
:
field_json
.
autocomplete
,
trim
:
true
,
maxlength
:
field_json
.
maxlength
,
// Force calling subfield render
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_input_js.js
View file @
31eee0b3
...
...
@@ -36,6 +36,7 @@
maxlength
:
options
.
maxlength
,
min
:
options
.
min
,
max
:
options
.
max
,
autocomplete
:
options
.
autocomplete
,
multiple
:
options
.
multiple
,
accept
:
options
.
accept
,
capture
:
options
.
capture
,
...
...
@@ -112,6 +113,10 @@
textarea
.
required
=
false
;
}
if
(
this
.
state
.
autocomplete
)
{
textarea
.
autocomplete
=
this
.
state
.
autocomplete
;
}
if
(
this
.
state
.
editable
)
{
textarea
.
readonly
=
true
;
}
else
{
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_select_js.js
View file @
31eee0b3
...
...
@@ -25,6 +25,7 @@
error_text
:
options
.
error_text
||
""
,
id
:
options
.
id
,
name
:
options
.
name
,
autocomplete
:
options
.
autocomplete
,
title
:
options
.
title
,
hidden
:
options
.
hidden
};
...
...
@@ -66,6 +67,10 @@
select
.
readonly
=
false
;
}
if
(
this
.
state
.
autocomplete
)
{
select
.
autocomplete
=
this
.
state
.
autocomplete
;
}
if
(
modification_dict
.
hasOwnProperty
(
'
value
'
)
||
modification_dict
.
hasOwnProperty
(
'
item_list
'
))
{
fragment
=
document
.
createDocumentFragment
();
...
...
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