From 47846dc3c10f90b485d47d9fa60b10251488d0b6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 7 Nov 2012 23:36:13 +0000 Subject: [PATCH] Fix for 'next/previous' navigation --- js/ajax-common.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/js/ajax-common.js b/js/ajax-common.js index 1e19561fa1..df1eb32fe1 100644 --- a/js/ajax-common.js +++ b/js/ajax-common.js @@ -489,11 +489,17 @@ function doFooterPage (prefix, htmlId, button) { //* DEBUG: */ alert('doFooterPage(): button=' + button + ',currentTabId=' + currentTabId + ',nextPage[currentTabId]=' + nextPage[currentTabId]); if ((button == 'next') && (nextPage[currentTabId] != null)) { // Then call the AJAX requester - requestAjaxContent(prefix, htmlId, nextPage[currentTabId]); + var page = nextPage[currentTabId]; } else if ((button == 'previous') && (previousPage[currentTabId] != null)) { // Then call the AJAX requester - requestAjaxContent(prefix, htmlId, previousPage[currentTabId]); + var page = previousPage[currentTabId]; } + + // Request AJAX content + requestAjaxContent(prefix, htmlId, page); + + // Change the footer navigation + enableFooterNavigation(prefix, page); } // Allows to save made changes (this will be called if the onchange event has been triggered) -- 2.39.5