Ignore:
Timestamp:
Mar 29, 2010, 10:40:36 AM (14 years ago)
Author:
nikrou
Message:

Fix bug 1157 : problem of missing navigation links when number of images
per page selected is less than number of images per pages for user

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/akBookStyle/trunk/js/ak_jquery-load.js

    r5432 r5445  
    11$(function() {
     2    next_link = $('table.thumbnails div.navbar a[rel=next]');
     3    if (next_link.length!=0) {
     4      $('#akNextPicture').css('visibility', 'visible');
     5    }
     6    previous_link = $('table.thumbnails div.navbar a[rel=previous]');
     7    if (previous_link.length!=0) {
     8      $('#akPreviousPicture').css('visibility', 'visible');
     9    }
     10   
    211    $("a.load")
    312      .bind(ak_mouse_event, function() {
    4           $('table.thumbnails tr td.ncol').each(function() {
    5               if ($(this).hasClass('selected')) {
    6                 $(this).removeClass('selected');
    7               }
    8             });
     13          $('table.thumbnails tr td.ncol').each(function() {
     14              if ($(this).hasClass('selected')) {
     15                $(this).removeClass('selected');
     16              }
     17            });
    918
    1019          $a = $(this);
     
    1726            }
    1827            next_link = $('table.thumbnails div.navbar a[rel='+rel+']');
    19             window.location = next_link.attr('href');
     28            if (next_link.length!=0) {
     29              window.location = next_link.attr('href');
     30            }
    2031          } else {
    2132            next_thumbnail.parent().parent().parent().addClass('selected');
Note: See TracChangeset for help on using the changeset viewer.