Plugin Directory

Changeset 477431


Ignore:
Timestamp:
12/19/2011 12:07:43 PM (14 years ago)
Author:
Chaser324
Message:

Commit final 1.23 changes to branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • featured-posts-scroll/branches/varsize/js/fps.js.php

    r476626 r477431  
    125125    function initAutoscroll()
    126126    {
    127         if (type != 'none' && 1 == <?php echo $post_autoscroll ?>)
     127        if (type != 'none')
    128128        {
    129129            $j('.featured-posts-wrapper').each(function(index) {
    130130                fps_animLocked[index] = true;
    131131               
    132                 if ($j('.featured-posts-wrapper').slice(index,index+1).children('.scrollFeaturedPostsRight').length > 0)
     132                if (1 == <?php echo $post_autoscroll ?>)
    133133                {
    134                     var callback =
    135                         "FeaturedPostsLib.fps.scrollFeaturedPosts(jQuery('.featured-posts-wrapper').slice(" +
    136                         index + "," + (index + 1) + ").children('.scrollFeaturedPostsRight'), 'right', " + index + ")";
    137                     autoscrollInterval[index] = setInterval(
    138                         callback, <?php echo $post_scroll_interval ?>);
    139                 }
    140                 else
    141                 {
    142                     var callback =
    143                         "FeaturedPostsLib.fps.scrollFeaturedPosts(jQuery('.featured-posts-wrapper').slice(" +
    144                         index + "," + (index + 1) + ").children('.scrollFeaturedPostsRight-below'), 'right', " + index + ")";
    145                     autoscrollInterval[index] = setInterval(
    146                         callback, <?php echo $post_scroll_interval ?>);
     134                    if ($j('.featured-posts-wrapper').slice(index,index+1).children('.scrollFeaturedPostsRight').length > 0)
     135                    {
     136                        var callback =
     137                            "FeaturedPostsLib.fps.scrollFeaturedPosts(jQuery('.featured-posts-wrapper').slice(" +
     138                            index + "," + (index + 1) + ").children('.scrollFeaturedPostsRight'), 'right', " + index + ")";
     139                        autoscrollInterval[index] = setInterval(
     140                            callback, <?php echo $post_scroll_interval ?>);
     141                    }
     142                    else
     143                    {
     144                        var callback =
     145                            "FeaturedPostsLib.fps.scrollFeaturedPosts(jQuery('.featured-posts-wrapper').slice(" +
     146                            index + "," + (index + 1) + ").children('.scrollFeaturedPostsRight-below'), 'right', " + index + ")";
     147                        autoscrollInterval[index] = setInterval(
     148                            callback, <?php echo $post_scroll_interval ?>);
     149                    }
    147150                }
    148151            });
Note: See TracChangeset for help on using the changeset viewer.