diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-03-08 15:31:56 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-03-08 15:31:56 +0100 |
commit | 976cb66b250837dc4e8d058f0d8eca71ad7efe14 (patch) | |
tree | fba0c0207582b01f75604260cc299c63f911aa70 /module/web/templates | |
parent | webif. icons, storage.to fix (diff) | |
download | pyload-976cb66b250837dc4e8d058f0d8eca71ad7efe14.tar.xz |
speed manager fix
Diffstat (limited to 'module/web/templates')
-rw-r--r-- | module/web/templates/default/base.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html index 27a50a018..7aa6267a3 100644 --- a/module/web/templates/default/base.html +++ b/module/web/templates/default/base.html @@ -28,9 +28,13 @@ document.addEvent("domready", function(){ add_box = new Fx.Tween($('add_box'));
$('add_form').onsubmit=function() {
- if ($('add_name').value == "" && $('add_file'.value != "")) alert("{% trans "Please Enter a packagename." %}")
- $('add_form').target = 'upload_target'; //'upload_target' is the name of the iframe
+ $('add_form').target = 'upload_target';
+ if ($('add_name').value == "" && $('add_file').value != " "){
+ alert("{% trans "Please Enter a packagename." %}");
+ return false
+ }else{
out();
+ }
}
$('add_reset').addEvent('click', function(){
|