--- a/web/data/cubicweb.edition.js Thu Mar 29 14:20:41 2012 +0200
+++ b/web/data/cubicweb.edition.js Tue Apr 10 17:03:19 2012 +0200
@@ -435,11 +435,15 @@
}
}
if (globalerrors.length) {
- if (globalerrors.length == 1) {
- var innernode = SPAN(null, globalerrors[0]);
- } else {
- var innernode = UL(null, $.map(globalerrors, partial(LI, null)));
- }
+ if (globalerrors.length == 1) {
+ var innernode = SPAN(null, globalerrors[0]);
+ } else {
+ var linodes =[];
+ for(var i=0; i<globalerrors.length; i++){
+ linodes.push(LI(null, globalerrors[i]));
+ }
+ var innernode = UL(null, linodes);
+ }
// insert DIV and innernode before the form
var div = DIV({
'class': "errorMessage",