Changeset 5445 for extensions/akBookStyle/trunk/js
- Timestamp:
- Mar 29, 2010, 10:40:36 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/akBookStyle/trunk/js/ak_jquery-load.js
r5432 r5445 1 1 $(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 2 11 $("a.load") 3 12 .bind(ak_mouse_event, function() { 4 5 6 7 8 13 $('table.thumbnails tr td.ncol').each(function() { 14 if ($(this).hasClass('selected')) { 15 $(this).removeClass('selected'); 16 } 17 }); 9 18 10 19 $a = $(this); … … 17 26 } 18 27 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 } 20 31 } else { 21 32 next_thumbnail.parent().parent().parent().addClass('selected');
Note: See TracChangeset
for help on using the changeset viewer.