From 7338703332bc0512847b0bead734930512fc502f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 30 Jun 2014 13:15:32 +0200 Subject: [PATCH] only include elements from the first table in linear navigation (#4730) --- src/pfwbged/theme/diazo_resources/static/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pfwbged/theme/diazo_resources/static/main.js b/src/pfwbged/theme/diazo_resources/static/main.js index 8a90291..ff870a2 100644 --- a/src/pfwbged/theme/diazo_resources/static/main.js +++ b/src/pfwbged/theme/diazo_resources/static/main.js @@ -12,7 +12,7 @@ $.pfwbged.prepareLinearNavigation = function () { /* prepare for linear navigation from document page to document page */ - var doc_links = $('.ResultsTasksTable tr a, .ResultsTable tr a').map( + var doc_links = $('table.listing:first').parent('.ResultsTasksTable, .ResultsTable').find('tr a').map( function(a, b) { return $(b).attr('href'); }); if (doc_links.length > 0) { /* remove duplicated items */