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
2803cd39
Commit
2803cd39
authored
Jul 29, 2013
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JQM-extensions: fixed refreshing carousel widget
parent
cb35fb6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
modules/core/extensions/extensions.js
modules/core/extensions/extensions.js
+8
-3
No files found.
modules/core/extensions/extensions.js
View file @
2803cd39
...
...
@@ -52,9 +52,9 @@ define([
items
=
el
.
children
(),
fragment
=
document
.
createDocumentFragment
(),
classes
=
"
ui-carousel
"
,
barrel
,
label
,
radio
,
barrel
,
item
,
i
,
transition
,
...
...
@@ -109,7 +109,7 @@ define([
if
(
o
.
bullets
)
{
classes
+=
"
ui-carousel-bullets
"
;
barrel
=
$
(
"
<div
class='ui-carousel-controls ui-carousel-controls-
"
+
o
.
bulletPos
+
"
' />
"
);
barrel
=
$
(
"
<div
id='ui-carousel-barrel-
"
+
this
.
uuid
+
"
' class='ui-carousel-controls ui-carousel-controls-
"
+
o
.
bulletsPos
+
"
' />
"
)
while
(
fragment
.
firstChild
)
{
// browser hangs up if calling this inside append()
...
...
@@ -118,8 +118,13 @@ define([
fragment
.
firstChild
);
}
// remove existing barrel
if
(
create
===
undefined
)
{
console
.
log
(
$
(
"
#ui-carousel-barrel-
"
+
this
.
uuid
));
$
(
"
#ui-carousel-barrel-
"
+
this
.
uuid
).
remove
();
}
// this always needs to go before the slider
el
[
o
.
bulletPos
===
"
top
"
?
"
before
"
:
"
after
"
](
barrel
);
el
[
o
.
bullet
s
Pos
===
"
top
"
?
"
before
"
:
"
after
"
](
barrel
);
this
.
_on
(
barrel
.
find
(
"
input
"
),
{
change
:
"
_onChange
"
});
}
...
...
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