Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ecommerce-ui
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
nexedi
ecommerce-ui
Commits
081697cd
Commit
081697cd
authored
Dec 13, 2013
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed textarea field not being form-validated and highlighted
parent
afa3558b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
24 deletions
+17
-24
css/css.css
css/css.css
+1
-0
data/person_fieldlist.json
data/person_fieldlist.json
+2
-2
js/erp5_loader.js
js/erp5_loader.js
+14
-22
No files found.
css/css.css
View file @
081697cd
html
body
.ui-input-text.invalid
,
html
body
.ui-select
.ui-btn.invalid
,
html
body
.required.invalid
~
label
{
border
:
1px
solid
red
!important
;
}
...
...
data/person_fieldlist.json
View file @
081697cd
...
...
@@ -271,7 +271,7 @@
"enabled"
:
true
,
"editable"
:
true
,
"external_validator"
:
null
,
"required"
:
null
,
"required"
:
true
,
"preserve_whitespace"
:
null
,
"unicode"
:
null
,
"maximum_lines"
:
null
,
...
...
@@ -1052,7 +1052,7 @@
"enabled"
:
true
,
"editable"
:
true
,
"external_validator"
:
null
,
"required"
:
null
,
"required"
:
true
,
"preserve_whitespace"
:
null
,
"unicode"
:
null
,
"maximum_lines"
:
null
,
...
...
js/erp5_loader.js
View file @
081697cd
...
...
@@ -869,7 +869,7 @@
config
.
attributes
=
{
"
data-enhanced
"
:
"
true
"
,
"
type
"
:
(
prevail
.
widget
.
hidden
||
spec
.
widget
.
hidden
)
===
true
?
"
hidden
"
:
type
"
hidden
"
:
(
type
||
null
)
};
config
.
logic
=
{
"
data-vv-validations
"
:
validation_list
||
undefined
,
...
...
@@ -2052,26 +2052,12 @@
// TODO: crap to use both layout and children!
// NOTE: securing ? http://nedbatchelder.com/text/stopbots.html
factory
.
form
=
function
(
spec
)
{
var
i
,
j
,
k
,
layout
,
element
,
container
,
area
,
field
,
overrides
,
position
,
doc
,
config
,
value
,
stamp
,
sauce
,
encode
,
secure
=
spec
.
property_dict
.
secure
,
safety_box
,
noscript
,
fragment
=
factory
.
util
.
wrapInForm
(
spec
),
var
i
,
j
,
k
,
layout
,
element
,
container
,
area
,
field
,
overrides
,
position
,
doc
,
config
,
value
,
stamp
,
sauce
,
encode
,
secure
,
safety_box
,
noscript
,
fragment
,
wrap
;
secure
=
spec
.
property_dict
.
secure
;
fragment
=
factory
.
util
.
wrapInForm
(
spec
);
wrap
=
function
(
area
,
captcha
)
{
var
keys
=
{};
...
...
@@ -2157,7 +2143,7 @@
for
(
j
=
0
;
j
<
layout
.
fieldlist
.
length
;
j
+=
1
)
{
field
=
layout
.
fieldlist
[
j
];
console
.
log
(
field
.
title
)
config
=
spec
.
fields
[
field
.
title
];
overrides
=
field
.
overrides
;
doc
=
spec
.
data
||
undefined
;
...
...
@@ -3381,6 +3367,12 @@
break
;
}
}
// clear textarea type=null if set
if
(
config
.
type
===
"
textarea
"
)
{
delete
config
.
attributes
.
type
;
}
// assemble
container_class_list
+=
"
ui-corner-all ui-shadow-inset
"
+
disabled
+
readonly
+
(
action
||
""
)
+
(
clear
||
""
)
+
(
theme
||
""
);
...
...
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