Parcourir la source

Fixed issue with file upload dialog not closing when selecting file #7135

svn changeset:19499/svn branch:6.6
tags/6.7.0.beta1
John Alhroos il y a 13 ans
Parent
révision
9cf4a1b2ee
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4
    2
      src/com/vaadin/terminal/gwt/client/ui/VUpload.java

+ 4
- 2
src/com/vaadin/terminal/gwt/client/ui/VUpload.java Voir le fichier

@@ -1,4 +1,4 @@
/*
/*
@ITMillApache2LicenseForJavaFiles@
*/

@@ -22,6 +22,7 @@ import com.google.gwt.user.client.ui.Hidden;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.SimplePanel;
import com.vaadin.terminal.gwt.client.ApplicationConnection;
import com.vaadin.terminal.gwt.client.BrowserInfo;
import com.vaadin.terminal.gwt.client.Paintable;
import com.vaadin.terminal.gwt.client.UIDL;
import com.vaadin.terminal.gwt.client.VConsole;
@@ -44,7 +45,8 @@ public class VUpload extends SimplePanel implements Paintable {
&& !"".equals(fu.getFilename())) {
submit();
}
} else if (event.getTypeInt() == Event.ONFOCUS) {
} else if (BrowserInfo.get().isIE()
&& event.getTypeInt() == Event.ONFOCUS) {
// IE and user has clicked on hidden textarea part of upload
// field. Manually open file selector, other browsers do it by
// default.

Chargement…
Annuler
Enregistrer