From 8c69c4f756c6aaf8f3254ffb15f83aa7a4df91ac Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 8 Jul 2011 23:17:40 +0200 Subject: show queue in webif --- module/web/media/default/js/status.js | 1 + module/web/templates/default/base.html | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'module/web') diff --git a/module/web/media/default/js/status.js b/module/web/media/default/js/status.js index d4ac97528..2ff67fca5 100644 --- a/module/web/media/default/js/status.js +++ b/module/web/media/default/js/status.js @@ -14,6 +14,7 @@ Element.implement({ function updateStatus(data){ + alert("test"); document.id("status").textContent = "Status: "+ data.status; document.id("speed").textContent = "Speed: "+ data.speed +" kb/s"; document.id("queue").textContent = "Files in queue: "+ data.queue; diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html index 30c3a0414..6eb71f737 100644 --- a/module/web/templates/default/base.html +++ b/module/web/templates/default/base.html @@ -88,6 +88,7 @@ function LoadJsonToContent(data) $("speed").set('text', Math.round(data.speed*100)/100); $("aktiv").set('text', data.activ); $("aktiv_from").set('text', data.queue); + $("aktiv_total").set('text', data.total); if (data.captcha){ if($("cap_info").getStyle("display") != "inline"){ @@ -256,7 +257,7 @@ function AddBox(){
  • {{_("Download:")}} {% if status.download %}{{_("on")}}{% else %}{{_("off")}}{% endif %}
  • {{_("Reconnect:")}} {% if status.reconnect %}{{_("on")}}{% else %}{{_("off")}}{% endif %}
  • {{_("Speed:")}} {{ status.speed }} kb/s
  • -
  • {{_("Active:")}} {{ status.activ }} / {{ status.queue }}
  • +
  • {{_("Active:")}} {{ status.activ }} / {{ status.queue }} / {{ status.total }}
  • {{_("Reload page")}}
  • {% endif %} -- cgit v1.2.3