]> git.mxchange.org Git - mailer.git/commitdiff
Fix for 'next/previous' navigation
authorRoland Häder <roland@mxchange.org>
Wed, 7 Nov 2012 23:36:13 +0000 (23:36 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 7 Nov 2012 23:36:13 +0000 (23:36 +0000)
js/ajax-common.js

index 1e19561fa1f07c388c66150c3065ab6fbd6e44ec..df1eb32fe1d4609bfff86678ea2f85eb9c77a94a 100644 (file)
@@ -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)