summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();
}