]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixes #6881, VUpload now creates a fresh target frame if the server side reports...
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 3 May 2011 15:11:53 +0000 (15:11 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 3 May 2011 15:11:53 +0000 (15:11 +0000)
svn changeset:18618/svn branch:6.6

src/com/vaadin/terminal/gwt/client/ui/VUpload.java

index 3c28ea397895dc5ae182b72637969a91c9a9efac..206b89eb825222aa6124aafb5728d74428f2384d 100644 (file)
@@ -217,6 +217,15 @@ public class VUpload extends SimplePanel implements Paintable {
         submitButton.setEnabled(true);
         fu.getElement().setPropertyBoolean("disabled", false);
         enabled = true;
+        if (submitted) {
+            /*
+             * An old request is still in progress (most likely cancelled),
+             * ditching that target frame to make it possible to send a new
+             * file. A new target frame is created later."
+             */
+            cleanTargetFrame();
+            submitted = false;
+        }
     }
 
     /**