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
64cc711c
Commit
64cc711c
authored
Apr 29, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: W3C validator
parent
990c78fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
js/erp5_loader.js
js/erp5_loader.js
+14
-9
No files found.
js/erp5_loader.js
View file @
64cc711c
...
...
@@ -365,8 +365,8 @@
text
=
"
search
"
;
}
// disable IOS auto functionality (WARNING: fails W3C validation)
spec
.
attributes
.
autocapitalize
=
"
none
"
;
spec
.
attributes
.
autocorrect
=
"
none
"
;
//
spec.attributes.autocapitalize = "none";
//
spec.attributes.autocorrect = "none";
container_class_list
=
"
ui-input-
"
+
text
;
}
...
...
@@ -778,7 +778,8 @@
(
collapsed
?
"
"
:
"
ui-collapsible-heading-collapsed
"
)
},
"
logic
"
:
{
"
role
"
:
spec
.
form
?
"
heading
"
:
null
//pfff (WARNING: fails W3C validation)
//"role": spec.form ? "heading" : null
}
});
...
...
@@ -907,7 +908,8 @@
"
direct
"
:
{
"
className
"
:
"
translate ui-title
"
},
"
attributes
"
:
{
"
data-i18n
"
:
config
.
title_i18n
||
""
,
"
role
"
:
"
heading
"
,
// WARNING Fails W3C
//"role": "heading",
"
aria-level
"
:
"
1
"
},
"
logic
"
:
{
"
text
"
:
config
.
title
||
"
\
u00A0
"
}
...
...
@@ -1028,8 +1030,9 @@
});
label
=
factory
.
element
({
"
type
"
:
"
div
"
,
"
direct
"
:
{
"
className
"
:
"
ui-controlgroup-label
"
},
"
attributes
"
:
{
"
role
"
:
"
heading
"
}
"
direct
"
:
{
"
className
"
:
"
ui-controlgroup-label
"
}
//,
//"attributes": {"role": "heading"}
});
label
.
appendChild
(
factory
.
element
({
"
type
"
:
"
legend
"
,
...
...
@@ -1903,9 +1906,6 @@
(
config
.
form_item
?
"
ui-field-contain
"
:
"
"
)
+
(
config
.
reveal
?
"
ui-screen-hidden
"
:
"
"
)
+
(
element
.
class_list
||
""
)
},
"
logic
"
:
{
"
role
"
:
divider
?
"
heading
"
:
null
}
});
...
...
@@ -3917,6 +3917,11 @@
};
}
// NOTE: we can't remove type from attributes, but must delete
// it if it's null, otherwise code is not valid (Opera chokes)
if
(
pass
.
push
.
attributes
.
type
===
null
)
{
delete
pass
.
push
.
attributes
.
type
;
}
// need to set position here to also include custom fields
pass
.
position
=
segment
.
position
===
"
center
"
?
1
:
2
;
...
...
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