Permalink
Browse files

Fixed IE7 issue with open commas. (Thanks to André Kurfürst)

  • Loading branch information...
1 parent 319fdea commit c261fc9cffc6d4c3e7fca7387c761c2c39962013 @zachdunn zachdunn committed Feb 27, 2011
Showing with 8 additions and 8 deletions.
  1. +7 −7 js/jquery.totemticker.js
  2. +1 −1 js/jquery.totemticker.min.js
View
@@ -51,7 +51,7 @@
base.ticker = setInterval(function() {
base.$el.find('li:last').detach().prependTo(base.$el).css('marginTop', '-' + base.options.row_height);
base.$el.find('li:first').animate({
- marginTop: '0px',
+ marginTop: '0px'
}, base.options.speed, function () {
//Callback functions go here
});
@@ -61,7 +61,7 @@
base.ticker = setInterval(function() {
base.$el.find('li:first').animate({
- marginTop: '-' + base.options.row_height,
+ marginTop: '-' + base.options.row_height
}, base.options.speed, function() {
$(this).detach().css('marginTop', '0').appendTo(base.$el);
});
@@ -89,13 +89,13 @@
base.$el.css({
height : ticker_height + 'px',
- overflow : 'hidden',
+ overflow : 'hidden'
});
}else{
//No heights were specified, so just doublecheck overflow = hidden
base.$el.css({
- overflow : 'hidden',
+ overflow : 'hidden'
})
}
@@ -124,7 +124,7 @@
$(base.options.previous).click(function(){
base.$el.find('li:last').detach().prependTo(base.$el).css('marginTop', '-' + base.options.row_height);
base.$el.find('li:first').animate({
- marginTop: '0px',
+ marginTop: '0px'
}, base.options.speed, function () {
base.reset_interval();
});
@@ -136,7 +136,7 @@
if (typeof(base.options.next) != "undefined" && base.options.next != null){
$(base.options.next).click(function(){
base.$el.find('li:first').animate({
- marginTop: '-' + base.options.row_height,
+ marginTop: '-' + base.options.row_height
}, base.options.speed, function() {
$(this).detach().css('marginTop', '0px').appendTo(base.$el);
base.reset_interval();
@@ -183,7 +183,7 @@
interval : 4000, /* Time between change in milliseconds */
max_items : null, /* Integer for how many items to display at once. Resizes height accordingly (OPTIONAL) */
mousestop : false, /* If set to true, the ticker will stop on mouseover */
- direction : 'down', /* Direction that list will scroll */
+ direction : 'down' /* Direction that list will scroll */
};
$.fn.totemticker = function( options ){

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit c261fc9

Please sign in to comment.