summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon2011-04-15 16:46:06 +0200
committerSimon2011-04-15 16:46:06 +0200
commit1dd3be2266c65f97985437efb47aeb21d9358300 (patch)
tree1363950c2cb2ecaa5b97592dcc5c112a16786d0c
parentDownloadgeschwindigkeit wird auf ganzzahl angezeigt (diff)
downloadpbs2-1dd3be2266c65f97985437efb47aeb21d9358300.tar.gz
pbs2-1dd3be2266c65f97985437efb47aeb21d9358300.tar.xz
pbs2-1dd3be2266c65f97985437efb47aeb21d9358300.zip
Zahlenrundung beim Download angepasst
-rw-r--r--application/modules/fbgui/views/scripts/index/start.phtml8
-rw-r--r--public/media/css/fbgui.css2
2 files changed, 9 insertions, 1 deletions
diff --git a/application/modules/fbgui/views/scripts/index/start.phtml b/application/modules/fbgui/views/scripts/index/start.phtml
index 2e78fb2..9b48fbf 100644
--- a/application/modules/fbgui/views/scripts/index/start.phtml
+++ b/application/modules/fbgui/views/scripts/index/start.phtml
@@ -108,12 +108,18 @@ function bytesToSize(bytes) {
return Math.round(bytes / Math.pow(1024, i), 2) + ' ' + sizes[[i]];
}
+if (!Number.toFixed) {
+ Number.prototype.toFixed=function(n){
+ return Math.round(this*Math.pow(10, n)) / Math.pow(10, n);
+ }
+}
+
function updateProgress(p, s, u){
$("#progressbar").progressbar({ value: ((actFile-1)*33+(p/3))});
if (p >= 0 && p <= 100){
$(".progressbar:last").progressbar({ value: p });
- $(".downloadelement .status:last").html("Downloading... "+p+"% - "+parseInt(s)+" "+u);
+ $(".downloadelement .status:last").html("Downloading... "+p+"% - "+(s.toFixed(2))+" "+u);
}else{
$(".progressbar:last").progressbar({ value: 0 });
}
diff --git a/public/media/css/fbgui.css b/public/media/css/fbgui.css
index aee7a29..98e9ef4 100644
--- a/public/media/css/fbgui.css
+++ b/public/media/css/fbgui.css
@@ -60,6 +60,8 @@ div.menu>img {
border:1px solid #CCCCCC;
height:40px;
width:180px;
+ cursor:pointer;
+ margin-top:10px;
float:right;
-moz-border-radius:6px;
-webkit-border-radius: 6px;