aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarko Grönroos <magi@iki.fi>2007-12-11 12:23:56 +0000
committerMarko Grönroos <magi@iki.fi>2007-12-11 12:23:56 +0000
commit9e64a503ad65868bd0227704f84302cc196bd1f7 (patch)
treea7346d1efcdc6b933353b8213d6ea924ff1da615
parent0359bc4ec5a799748b7e890172382c1eaf690b29 (diff)
downloadvaadin-framework-9e64a503ad65868bd0227704f84302cc196bd1f7.tar.gz
vaadin-framework-9e64a503ad65868bd0227704f84302cc196bd1f7.zip
Fixes #1213 in another way. Remove indicator element altogether.
svn changeset:3214/svn branch:trunk
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/client/Caption.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/Caption.java b/src/com/itmill/toolkit/terminal/gwt/client/Caption.java
index f5ba082f73..06d502696f 100644
--- a/src/com/itmill/toolkit/terminal/gwt/client/Caption.java
+++ b/src/com/itmill/toolkit/terminal/gwt/client/Caption.java
@@ -46,9 +46,6 @@ 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();
@@ -56,8 +53,8 @@ public class Caption extends HTML {
errorMessage.updateFromUIDL(errorUidl);
} else if (errorIndicatorElement != null) {
- // Just make the error indicator element invisible
- DOM.setStyleAttribute(errorIndicatorElement, "display", "none");
+ DOM.removeChild(getElement(), errorIndicatorElement);
+ errorIndicatorElement = null;
}
if (uidl.hasAttribute("icon")) {