diff options
author | mkaay <mkaay@mkaay.de> | 2010-02-09 22:31:46 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-02-09 22:31:46 +0100 |
commit | c7f4be730f6f89434a23f201bf0956fde8acd194 (patch) | |
tree | 6831d64e41b334ef38cb97032649c914bc3a8681 | |
parent | corrected typo (diff) | |
download | pyload-c7f4be730f6f89434a23f201bf0956fde8acd194.tar.xz |
webif patch #75 (thx kepheus)
-rw-r--r-- | module/web/templates/default/base.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html index 6f9157ecd..5771e64e5 100644 --- a/module/web/templates/default/base.html +++ b/module/web/templates/default/base.html @@ -28,7 +28,7 @@ document.addEvent("domready", function(){ add_box = new Fx.Tween($('add_box'));
$('add_form').onsubmit=function() {
- if ($('add_name').value == "") alert("{% trans "Please Enter a packagename." %}")
+ 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
out();
}
|