Is 'test' target JSON?
authorRoland Häder <roland@mxchange.org>
Thu, 8 Nov 2012 21:16:35 +0000 (21:16 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 8 Nov 2012 21:16:35 +0000 (21:16 +0000)
js/ajax-common.js
js/core-common.js

index df1eb32fe1d4609bfff86678ea2f85eb9c77a94a..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());
 
index e16488524496c2044c5c7bad47ecb856e0425d1f..77d08f337b936b3b17662e5ad2c32b3c9f0c0927 100644 (file)
@@ -39,7 +39,7 @@ function in_array (needle, heystack) {
                        isInArray = true;
                        break;
                } // END - if
-       } // END - if
+       } // END - for
 
        // Return status
        return isInArray;