fnp
/
django-sponsors.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Avoid 'too few slides' jquery.cycle error
[django-sponsors.git]
/
sponsors
/
static
/
sponsors
/
js
/
sponsors.js
diff --git
a/sponsors/static/sponsors/js/sponsors.js
b/sponsors/static/sponsors/js/sponsors.js
index
fbfbaeb
..
fe0d7f1
100755
(executable)
--- a/
sponsors/static/sponsors/js/sponsors.js
+++ b/
sponsors/static/sponsors/js/sponsors.js
@@
-1,7
+1,10
@@
(function($) {
$(function() {
- $('.sponsor-logos').cycle({timeout: 3000});
+ $('.sponsor-logos').each(function() {
+ if ($(this).children().length > 1)
+ $(this).cycle({timeout: 3000});
+ });
});
})(jQuery);