From: Marko Grönroos Date: Mon, 10 Dec 2007 18:44:04 +0000 (+0000) Subject: Fixed #1213. Reshow error indicator if re-enabled. X-Git-Tag: 6.7.0.beta1~5249 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0359bc4ec5a799748b7e890172382c1eaf690b29;p=vaadin-framework.git Fixed #1213. Reshow error indicator if re-enabled. svn changeset:3212/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/terminal/gwt/client/Caption.java b/src/com/itmill/toolkit/terminal/gwt/client/Caption.java index 8cd81ae889..f5ba082f73 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/Caption.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/Caption.java @@ -46,6 +46,9 @@ public class Caption extends HTML { DOM.setElementProperty(errorIndicatorElement, "className", "i-errorindicator"); DOM.insertChild(getElement(), errorIndicatorElement, 0); + } else { + // Restore the indicator that was previously made invisible + DOM.setStyleAttribute(errorIndicatorElement, "display", "inline"); } if (errorMessage == null) { errorMessage = new ErrorMessage(); @@ -53,6 +56,7 @@ public class Caption extends HTML { errorMessage.updateFromUIDL(errorUidl); } else if (errorIndicatorElement != null) { + // Just make the error indicator element invisible DOM.setStyleAttribute(errorIndicatorElement, "display", "none"); }