]> git.mxchange.org Git - mailer.git/blobdiff - js/ajax-common.js
Is 'test' target JSON?
[mailer.git] / js / ajax-common.js
index 1e19561fa1f07c388c66150c3065ab6fbd6e44ec..cad73bbbacfcffbbbe2273afb2bccadfd8ecae70 100644 (file)
@@ -308,7 +308,7 @@ function displayTestWindow (prefix, element) {
        });
 
        // Request it from the AJAX backend
-       if (sendAjaxRequest(prefix, 'test', '') == true) {
+       if (sendAjaxRequest(prefix, 'test', '', true) == true) {
                // Transfer the returned content to the prefix_warning_content id
                $('#' + prefix + '_warning_content').html(getAjaxContent());
 
@@ -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)