summaryrefslogtreecommitdiffstats
path: root/module/web
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-02-09 22:31:46 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2010-02-09 22:31:46 +0100
commitc7f4be730f6f89434a23f201bf0956fde8acd194 (patch)
tree6831d64e41b334ef38cb97032649c914bc3a8681 /module/web
parentcorrected typo (diff)
downloadpyload-c7f4be730f6f89434a23f201bf0956fde8acd194.tar.xz
webif patch #75 (thx kepheus)
Diffstat (limited to 'module/web')
-rw-r--r--module/web/templates/default/base.html2
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();
}