fix global errors display when there is more than one error
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 14 Jan 2010 11:13:22 +0100
changeset 4240 6109962761f2
parent 4239 bce7a7a95f2b
child 4241 da919ea92880
fix global errors display when there is more than one error
web/data/cubicweb.edition.js
--- a/web/data/cubicweb.edition.js	Thu Jan 14 11:12:52 2010 +0100
+++ b/web/data/cubicweb.edition.js	Thu Jan 14 11:13:22 2010 +0100
@@ -352,7 +352,7 @@
 	if (globalerrors.length == 1) {
 	    var innernode = SPAN(null, globalerrors[0]);
 	} else {
-	    var innernode = UL(null, map(LI, globalerrors));
+	    var innernode = UL(null, map(partial(LI, null), globalerrors));
 	}
 	// insert DIV and innernode before the form
 	var div = DIV({'class' : "errorMessage", 'id': formid + 'ErrorMessage'});