Changeset 738 for trunk/Modules/Export


Ignore:
Timestamp:
Jan 9, 2014, 1:33:33 AM (11 years ago)
Author:
maron
Message:
  • Added: update page when progress is on 100%
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Export/Progress.php

    r733 r738  
    1111    $DbResult = $System->Database->query('SELECT Progress FROM `ExportTask` WHERE `Export`='.$_GET['ExportId']);
    1212    $Task = $DbResult->fetch_assoc();
     13   
     14    if ( $Task['Progress'] > 99 )   echo '<script type="text/javascript" language="JavaScript" charset="utf-8">'.
     15   'setTimeout("parent.location.href=\''.$System->Link('/export/?Action=View&Tab=7&ExportId='.$_GET['ExportId']).'\'", 500)'.
     16   '</script>';
     17
    1318
    1419    echo ''.ProgressBar(300, $Task['Progress']).'';
Note: See TracChangeset for help on using the changeset viewer.