~ubuntu-branches/ubuntu/utopic/phpmyadmin/utopic

« back to all changes in this revision

Viewing changes to js/export.js

  • Committer: Package Import Robot
  • Author(s): Michal Čihař
  • Date: 2014-04-29 10:34:13 UTC
  • mfrom: (1.2.54)
  • Revision ID: package-import@ubuntu.com-20140429103413-2l1oxrb5pd8tt7vn
Tags: 4:4.1.14-1
* New upstream release.
* Correct conditions for using modules features in Apache configuration
  (Closes: #719754).

Show diffs side-by-side

added added

removed removed

Lines of Context:
220
220
var time_out;
221
221
function check_time_out(time_limit)
222
222
{
 
223
    if (typeof time_limit === 'undefined' || time_limit === 0) {
 
224
        return true;
 
225
    }
223
226
    //margin of one second to avoid race condition to set/access session variable
224
227
    time_limit = time_limit + 1;
225
228
    var href = "export.php";
231
234
     clearTimeout(time_out);
232
235
     time_out = setTimeout(function(){        
233
236
         $.get(href, params, function (data) {
234
 
            if (data['message'] !== 'success') {
 
237
            if (data['message'] === 'timeout') {
235
238
                PMA_ajaxShowMessage(
236
239
                    '<div class="error">' +
237
240
                    PMA_messages.strTimeOutError +