//* 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)