From 9e8618c4f9478dbcd7ecd76acb1d7afd075b32b4 Mon Sep 17 00:00:00 2001 From: Tomas Srnka Date: Tue, 2 Mar 2010 09:28:56 +0000 Subject: [PATCH] Import progress bar fix from GIT --- import_status.php | 1 + libraries/display_import.lib.php | 59 ++++++------------------ libraries/server_synchronize.lib.php | 2 +- server_synchronize.php | 6 +-- themes/darkblue_orange/img/new_data.jpg | Bin 0 -> 1925 bytes 5 files changed, 19 insertions(+), 49 deletions(-) create mode 100644 themes/darkblue_orange/img/new_data.jpg diff --git a/import_status.php b/import_status.php index 93cd7ba00..dccd41fdd 100644 --- a/import_status.php +++ b/import_status.php @@ -18,6 +18,7 @@ if (isset($GLOBALS["message"]) && $GLOBALS["message"]) { header('Content-type: text/html'); + usleep(300000); // wait 0.3 sec before we check for $_SESSION variable, which is set inside import.php while ($_SESSION['Import_message']['message'] == null) { // wait until message is available usleep(250000); // 0.25 sec } diff --git a/libraries/display_import.lib.php b/libraries/display_import.lib.php index 2d854ad40..c24ff9914 100644 --- a/libraries/display_import.lib.php +++ b/libraries/display_import.lib.php @@ -26,41 +26,13 @@ if (empty($import_list)) { } ?> - +
ajax clock