summaryrefslogtreecommitdiffstats
path: root/module/web/templates/default/base.html
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-01-13 21:23:05 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-01-13 21:23:05 +0100
commit9cce347134cffb8e3e920d94768306c2156dddee (patch)
tree8c119eb15cac2eaac99fbf0548ffe7c116127fc4 /module/web/templates/default/base.html
parentqueue template + view (diff)
downloadpyload-9cce347134cffb8e3e920d94768306c2156dddee.tar.xz
some webinterface improvements, closed #40
Diffstat (limited to 'module/web/templates/default/base.html')
-rw-r--r--module/web/templates/default/base.html15
1 files changed, 9 insertions, 6 deletions
diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html
index e4d11ce34..0cebeb5d8 100644
--- a/module/web/templates/default/base.html
+++ b/module/web/templates/default/base.html
@@ -25,10 +25,11 @@ document.addEvent("domready", function(){
add_bg = new Fx.Tween($('add_bg'));
add_box = new Fx.Tween($('add_box'));
-
- new Form.Request("add_form", $('none_existent'), { onSuccess: function(){
+
+ $('add_form').onsubmit=function() {
+ $('add_form').target = 'upload_target'; //'upload_target' is the name of the iframe
out();
- }});
+ }
$('add_reset').addEvent('click', function(){
out();
@@ -37,6 +38,8 @@ document.addEvent("domready", function(){
var jsonStatus = new Request.JSON({
url: "json/status",
onSuccess: LoadJsonToContent,
+ secure: false,
+ async: true,
initialDelay: 0,
delay: 4000,
limit: 30000
@@ -54,9 +57,9 @@ document.addEvent("domready", function(){
function LoadJsonToContent(data)
{
- $("speed").textContent = Math.round(data.speed*100)/100;
- $("aktiv").textContent = data.queue;
- $("queue").textContent = data.total;
+ $("speed").set('text', Math.round(data.speed*100)/100);
+ $("aktiv").set('text', data.queue);
+ $("queue").set('text', data.total);
}
function show(){
add_bg.set('opacity', 0);