mirror of
https://github.com/moodle/moodle.git
synced 2025-07-28 01:41:03 +02:00
MDL-21963 rewritten progress bar internals, hopefully working now properly
This commit is contained in:
@@ -1132,7 +1132,7 @@ Number.prototype.fixed=function(n){
|
||||
return round(Number(this)*pow(10,n))/pow(10,n);
|
||||
};
|
||||
function update_progress_bar (id, width, pt, msg, es){
|
||||
var percent = pt*100;
|
||||
var percent = pt;
|
||||
var status = document.getElementById("status_"+id);
|
||||
var percent_indicator = document.getElementById("pt_"+id);
|
||||
var progress_bar = document.getElementById("progress_"+id);
|
||||
@@ -1144,8 +1144,8 @@ function update_progress_bar (id, width, pt, msg, es){
|
||||
time_es.style.display = "none";
|
||||
} else {
|
||||
progress_bar.style.background = "#FFCC66";
|
||||
if (es == Infinity){
|
||||
time_es.innerHTML = "Initializing...";
|
||||
if (es == '?'){
|
||||
time_es.innerHTML = "";
|
||||
}else {
|
||||
time_es.innerHTML = es.fixed(2)+" sec";
|
||||
time_es.style.display
|
||||
|
Reference in New Issue
Block a user