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
9c08fd29
Commit
9c08fd29
authored
Apr 16, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: fixed bugs
parent
52ea6a9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
17 deletions
+27
-17
js/erp5_loader.js
js/erp5_loader.js
+27
-17
No files found.
js/erp5_loader.js
View file @
9c08fd29
...
...
@@ -1642,7 +1642,10 @@
if
(
has_link
)
{
target
=
factory
.
element
({
"
type
"
:
"
a
"
,
"
direct
"
:
{
"
className
"
:
"
ui-link ui-carousel-selector
"
}
"
direct
"
:
{
"
href
"
:
has_link
,
"
className
"
:
"
ui-link ui-carousel-selector
"
}
});
}
else
{
target
=
item
;
...
...
@@ -1688,13 +1691,13 @@
"
direct
"
:
{
"
role
"
:
"
carousel
"
,
"
className
"
:
(
spec
.
class_list
||
empty_string
)
+
"
ui-carousel
"
+
(
is_thumb
?
"
ui-carousel-thumbnails
"
:
"
ui-carousel-bullets
"
+
(
is_thumb
?
"
ui-carousel-thumbnails
"
:
"
ui-carousel-bullets
"
+
((
has_handles
?
"
ui-carousel-handles
"
:
empty_string
)
+
(
spec
.
shadow
?
"
ui-shadow
"
:
empty_string
)
+
(
spec
.
captions
?
"
ui-carousel-captions
"
:
empty_string
)
+
(
spec
.
inset
?
"
ui-carousel-inset
"
:
empty_string
)
+
(
spec
.
corners
?
"
ui-corner-all
"
:
empty_string
)))
+
(
"
ui-body-
"
+
(
spec
.
theme
||
"
inherit
"
))
(
"
ui-body-
"
+
(
spec
.
theme
||
"
inherit
"
))
},
"
attributes
"
:
{
"
data-enhanced
"
:
true
,
...
...
@@ -3289,7 +3292,9 @@
**/
// TODO: allow to run multiple mappers eg formItem + tableRow
map
.
element
=
function
(
element
,
wrapper
,
i
)
{
console
.
log
(
element
)
if
(
wrapper
.
child_mapper
)
{
console
.
log
(
"
Child mapper...
"
);
if
(
element
.
scheme
)
{
// NOTE: chaining allows the mapper to make additional async requests!
return
map
[
wrapper
.
child_mapper
]({
...
...
@@ -3313,6 +3318,7 @@
})
.
fail
(
app
.
util
.
error
);
}
console
.
log
(
"
OUT
"
)
return
RSVP
.
resolve
(
wrapper
.
child_constructor
({
"
item
"
:
element
,
"
wrapper
"
:
wrapper
,
...
...
@@ -3397,6 +3403,8 @@
var
quirk_dict
,
section
,
pos
,
label
,
j
,
k
,
field
,
setter
,
record
,
new_item
,
id
,
key
,
obj
,
translation_fields
,
item
;
console
.
log
(
"
HELLO
"
)
console
.
log
(
spec
)
translation_fields
=
"
titletextlabel
"
;
quirk_dict
=
spec
.
wrapper
.
property_dict
;
item
=
spec
.
item
;
...
...
@@ -6643,24 +6651,26 @@
app
.
init
.
testSupport
=
function
(
property_list
)
{
var
j
,
no_support
,
fail
,
message
;
if
(
Modernizr
)
{
fail
=
""
;
for
(
j
=
0
;
j
<
property_list
.
length
;
j
+=
1
)
{
if
(
Modernizr
[
property_list
[
j
]]
===
false
)
{
no_support
=
true
;
fail
+=
property_list
[
j
]
+
"
|
"
;
if
(
property_list
.
length
>
0
)
{
if
(
Modernizr
)
{
fail
=
""
;
for
(
j
=
0
;
j
<
property_list
.
length
;
j
+=
1
)
{
if
(
Modernizr
[
property_list
[
j
]]
===
false
)
{
no_support
=
true
;
fail
+=
property_list
[
j
]
+
"
|
"
;
}
}
}
if
(
no_support
)
{
message
=
fail
.
splice
(
0
,
-
1
);
app
.
util
.
error
(
"
browser:
"
+
message
+
"
not supported
"
);
if
(
no_support
)
{
message
=
fail
.
splice
(
0
,
-
1
);
app
.
util
.
error
(
"
browser:
"
+
message
+
"
not supported
"
);
factory
.
util
.
noItems
({
"
message
"
:
message
});
return
false
;
factory
.
util
.
noItems
({
"
message
"
:
message
});
return
false
;
}
return
true
;
}
return
true
;
app
.
util
.
error
(
"
testSupport: Modernizr requested but undefined
"
)
;
}
app
.
util
.
error
(
"
testSupport: Modernizr requested but undefined
"
);
return
true
;
};
...
...
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