Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSmita Kumari <kumarismita62@gmail.com>2013-12-18 17:47:59 +0400
committerSmita Kumari <kumarismita62@gmail.com>2013-12-18 17:47:59 +0400
commit675e457f50953cb0b00e9cf2940ab6a71d6f10d3 (patch)
tree2e3f9580f0e1c74ebd5974766b0e15184c19eaec /js/export.js
parent887cd2b6e967494df8c0f6ad8d75925da24cd3c2 (diff)
bug fix #2760
Signed-off-by: Smita Kumari <kumarismita62@gmail.com>
Diffstat (limited to 'js/export.js')
-rw-r--r--js/export.js27
1 files changed, 26 insertions, 1 deletions
diff --git a/js/export.js b/js/export.js
index f9fe774c78..04901b1889 100644
--- a/js/export.js
+++ b/js/export.js
@@ -213,7 +213,32 @@ function toggle_quick_or_custom()
$("#output_quick_export").show();
}
}
-
+var time_out;
+function check_time_out(time_limit)
+{
+ //margin of one second to avoid race condition to set/access session variable
+ time_limit = time_limit + 1;
+ var href = "export.php";
+ var params = {
+ 'ajax_request' : true,
+ 'token' : PMA_commonParams.get('token'),
+ 'check_time_out' : true
+ };
+ clearTimeout(time_out);
+ time_out = setTimeout(function(){
+ $.get(href, params, function (data) {
+ if(data['message'] !== 'success') {
+ PMA_ajaxShowMessage(
+ '<div class="error">' +
+ PMA_messages.strTimeOutError +
+ '</div>',
+ false
+ );
+ }
+ });
+ },time_limit*1000);
+
+}
AJAX.registerOnload('export.js', function () {
$("input[type='radio'][name='quick_or_custom']").change(toggle_quick_or_custom);