Commit c419eb1c authored by Jerome Mariette's avatar Jerome Mariette
Browse files

provide a wait to user if too long to calculate the size of projects/runs

parent 1426d321
......@@ -226,8 +226,23 @@ class tx_nG6_eid {
foreach($tab_ids as $id => $value) {
tx_nG6_db::unpublish_project($value);
}
// If asked the size
} else if ($type == 'get_size') {
$ids = trim(t3lib_div::_GP('ids'));
$view = trim(t3lib_div::_GP('view'));
$data_folder = trim(t3lib_div::_GP('data_folder'));
$tab_ids = explode(",",$ids);
$full_size = 0;
foreach($tab_ids as $id => $value) {
if ($view == "run") {
$full_size += tx_nG6_db::get_run_size($value, $data_folder, $user_group);
} else if ($view == "project") {
$full_size += tx_nG6_db::get_project_size($value, $data_folder, $user_group);
}
}
print tx_nG6_utils::get_octet_string_representation($full_size);
}
}
/**
......
......@@ -22,6 +22,7 @@
***************************************************************/
.tx-nG6-wait { margin-left: 0px; padding-left: 50px; padding-top: 10px; height: 40px; background: url(../img/light_wait.gif) left no-repeat; }
.tx-nG6-mini-wait { margin-left: 0px; padding-left: 25px; padding-top: 0px; height: 20px; background: url(../img/mini_light_wait.gif) left no-repeat; }
.btn {
display:inline-block;
background:none;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment