diff --git a/ChangeLog b/ChangeLog index 940122fb98..5befd75a31 100644 --- a/ChangeLog +++ b/ChangeLog @@ -57,6 +57,7 @@ phpMyAdmin - ChangeLog - bug #4350 Deleting the DB if it is renamed by the same name - bug #4353 makeProfilingChart is not defined - bug #4355 Precision specifier for DOUBLE type is truncated +- bug #4346 Incorrect "Export incomplete" message 4.1.12.0 (2014-03-27) - bug #4334 Add event : datepicker won't open diff --git a/export.php b/export.php index b4bb86f6ad..eb30ce2d6c 100644 --- a/export.php +++ b/export.php @@ -27,7 +27,7 @@ if (!defined('TESTSUITE')) { if (isset($_SESSION['pma_export_error'])) { $err = $_SESSION['pma_export_error']; unset($_SESSION['pma_export_error']); - echo $err; + echo "timeout"; } else { echo "success"; } diff --git a/js/export.js b/js/export.js index 1b899ec2b8..6381bcc0b6 100644 --- a/js/export.js +++ b/js/export.js @@ -220,6 +220,9 @@ function toggle_quick_or_custom() var time_out; function check_time_out(time_limit) { + if (typeof time_limit === 'undefined' || time_limit === 0) { + return true; + } //margin of one second to avoid race condition to set/access session variable time_limit = time_limit + 1; var href = "export.php"; @@ -231,7 +234,7 @@ function check_time_out(time_limit) clearTimeout(time_out); time_out = setTimeout(function(){ $.get(href, params, function (data) { - if (data['message'] !== 'success') { + if (data['message'] === 'timeout') { PMA_ajaxShowMessage( '