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
Show 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([
...
@@ -52,9 +52,9 @@ define([
items
=
el
.
children
(),
items
=
el
.
children
(),
fragment
=
document
.
createDocumentFragment
(),
fragment
=
document
.
createDocumentFragment
(),
classes
=
"
ui-carousel
"
,
classes
=
"
ui-carousel
"
,
barrel
,
label
,
label
,
radio
,
radio
,
barrel
,
item
,
item
,
i
,
i
,
transition
,
transition
,
...
@@ -109,7 +109,7 @@ define([
...
@@ -109,7 +109,7 @@ define([
if
(
o
.
bullets
)
{
if
(
o
.
bullets
)
{
classes
+=
"
ui-carousel-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
)
{
while
(
fragment
.
firstChild
)
{
// browser hangs up if calling this inside append()
// browser hangs up if calling this inside append()
...
@@ -118,8 +118,13 @@ define([
...
@@ -118,8 +118,13 @@ define([
fragment
.
firstChild
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
// 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
"
});
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