From 349970cfaf11f958acc9a442eba800249e31d9fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Emourgeon?= Date: Tue, 16 Mar 2010 10:03:49 +0100 Subject: [PATCH] Fixed ticket 410, upload error message on new issue shouldn't be hidden. --- AUTHORS | 1 + src/IDF/templates/idf/issues/create.html | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 8c08dba..107cbdd 100644 --- a/AUTHORS +++ b/AUTHORS @@ -22,6 +22,7 @@ Much appreciated contributors: Samuel Suther Ludovic Bellière Brian Armstrong + Raphaël Emourgeon And all the nice users who spent time reporting issues and promoting the project. The project could not live without them. diff --git a/src/IDF/templates/idf/issues/create.html b/src/IDF/templates/idf/issues/create.html index 6e4e73f..c2dba27 100644 --- a/src/IDF/templates/idf/issues/create.html +++ b/src/IDF/templates/idf/issues/create.html @@ -123,7 +123,11 @@ $(document).ready(function(){ }); var j=0; for (j=1;j<4;j=j+1) { - $("#form-attachment-"+j).hide(); + if($("tr#form-attachment-"+j+" > td > ul.errorlist").length == 0){ + $("#form-attachment-"+j).hide(); + }else{ + $("#form-block-"+(j-1)).remove(); + } } });