summaryrefslogtreecommitdiffstats
path: root/module/web/templates
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-23 00:11:30 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-23 00:11:30 +0200
commit6e8827a6a5919e97bfe9a62d346869eda8ac9858 (patch)
tree078a4c5596e95841c100621ebd473d40d8719e27 /module/web/templates
parentwin unrar fixes (diff)
downloadpyload-6e8827a6a5919e97bfe9a62d346869eda8ac9858.tar.xz
package ui improvements
Diffstat (limited to 'module/web/templates')
-rw-r--r--module/web/templates/default/package_ui.js19
1 files changed, 13 insertions, 6 deletions
diff --git a/module/web/templates/default/package_ui.js b/module/web/templates/default/package_ui.js
index 70f5f35b6..75e6ef234 100644
--- a/module/web/templates/default/package_ui.js
+++ b/module/web/templates/default/package_ui.js
@@ -30,7 +30,7 @@ function indicateSuccess(){
success.start("opacity", 1).chain(function(){
(function(){
success.start("opacity", 0);
- }).delay(200);
+ }).delay(250);
});
}
@@ -40,7 +40,7 @@ function indicateFail(){
fail.start("opacity", 1).chain(function(){
(function(){
fail.start("opacity", 0);
- }).delay(200);
+ }).delay(250);
});
}
@@ -171,7 +171,7 @@ var Package = new Class({
method: 'get',
url: '/json/package/' + this.id,
onSuccess: this.createLinks.bind(this),
- onFailure: indicateFinish
+ onFailure: indicateFail
}).send();
},
@@ -229,7 +229,8 @@ var Package = new Class({
url: '/json/remove_link/'+this,
onSuccess: function(){
$('file_'+this).nix()
- }.bind(this)
+ }.bind(this),
+ onFailure: indicateFail
}).send();
}.bind(lid));
@@ -238,8 +239,14 @@ var Package = new Class({
method: 'get',
url: '/json/restart_link/'+this,
onSuccess: function(){
- $('file_'+this).nix()
- }.bind(this)
+ var ele = $('file_'+this);
+ var imgs = ele.getElements("img");
+ imgs[0].set("src", "/media/default/img/status_queue.png");
+ var spans = ele.getElements(".child_status");
+ spans[1].set("html", "queued");
+ indicateSuccess();
+ }.bind(this),
+ onFailure: indicateFail
}).send();
}.bind(lid));
});