merge 3.5
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 17 Sep 2009 17:06:22 +0200
branch3.5
changeset 3297 09fd65114a11
parent 3296 4f45756f5e78 (current diff)
parent 3294 5047b2566634 (diff)
child 3302 6526febd9151
merge
--- a/web/data/cubicweb.edition.js	Thu Sep 17 17:05:58 2009 +0200
+++ b/web/data/cubicweb.edition.js	Thu Sep 17 17:06:22 2009 +0200
@@ -481,10 +481,10 @@
 	return false;
     }
     d.addCallback(function (result, req) {
-        handleFormValidationResponse(divid+'-form', noop, noop, result);
-	if (reload) {
+        if (handleFormValidationResponse(divid+'-form', noop, noop, result)) {
+          if (reload) {
 	    document.location.href = result[1].split('?')[0];
-	} else {
+	  } else {
 	    var fieldview = getNode('value-' + divid);
 	    // XXX using innerHTML is very fragile and won't work if
 	    // we mix XHTML and HTML
@@ -494,7 +494,8 @@
 		// hide global error messages
 		hideInlineEdit(eid, rtype, divid);
 	    }
-	}
+	  }
+        }
 	return false;
     });
     return false;