From: Roland Häder Date: Wed, 7 Nov 2012 23:36:13 +0000 (+0000) Subject: Fix for 'next/previous' navigation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=47846dc3c10f90b485d47d9fa60b10251488d0b6;p=mailer.git Fix for 'next/previous' navigation --- 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)