<!-- <set-property name="user.agent" value="gecko" /> -->
<!-- Rebind the file upload dialog if Gears is installed -->
<replace-with class="gr.ebs.gss.client.FileUploadGearsDialog">
- <when-type-is class="gr.ebs.gss.client.FileUploadDialog"/>
- <when-property-is name="gears.installed" value="true"/>
+ <all>
+ <when-type-is class="gr.ebs.gss.client.FileUploadDialog"/>
+ <when-property-is name="gears.installed" value="true"/>
+ <none>
+ <when-property-is name="user.agent" value="ie6"/>
+ <when-property-is name="user.agent" value="ie8"/>
+ </none>
+ </all>
+ </replace-with>
+ <!-- Use a special file upload dialog if Gears is installed on IE -->
+ <replace-with class="gr.ebs.gss.client.FileUploadGearsIEDialog">
+ <all>
+ <when-type-is class="gr.ebs.gss.client.FileUploadDialog"/>
+ <when-property-is name="gears.installed" value="true"/>
+ <any>
+ <when-property-is name="user.agent" value="ie6"/>
+ <when-property-is name="user.agent" value="ie8"/>
+ </any>
+ </all>
</replace-with>
</module>