web/data/cubicweb.edition.js
changeset 8349 fdb796435d7b
parent 8260 5a81fa526b30
parent 8335 eef305ace54c
child 8941 7b26fe71404f
--- 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",