diff --git a/src/pfwbged/theme/diazo_resources/static/main.js b/src/pfwbged/theme/diazo_resources/static/main.js index cff323a..ba20325 100644 --- a/src/pfwbged/theme/diazo_resources/static/main.js +++ b/src/pfwbged/theme/diazo_resources/static/main.js @@ -26,22 +26,22 @@ if (typeof(doc_links) != 'object') return; var idx = doc_links.indexOf(window.location.href); if (idx == -1) return; - if (idx < doc_links.length-1) { - /* append a "next" link */ - var url = doc_links[idx+1]; - $('#contentview-edit').after('
  • ' + - 'Suivant
  • '); - } if (idx > 0) { /* append a "previous" link */ var url = doc_links[idx-1]; - $('#contentview-edit').after('
  • ' + + $('#content-views').append('
  • ' + 'Précédent
  • '); } if (table_url) { - $('#contentview-edit').after('
  • ' + + $('#content-views').append('
  • ' + 'Tableau
  • '); } + if (idx < doc_links.length-1) { + /* append a "next" link */ + var url = doc_links[idx+1]; + $('#content-views').append('
  • ' + + 'Suivant
  • '); + } }; }(jQuery));