[Commits] r2623 - core/trunk/geoext/lib/GeoExt/data

commits at geoext.org commits at geoext.org
Fri Mar 18 16:34:30 CET 2011


Author: bbinet
Date: 2011-03-18 16:34:29 +0100 (Fri, 18 Mar 2011)
New Revision: 2623

Modified:
   core/trunk/geoext/lib/GeoExt/data/PrintProvider.js
Log:
prefer window.location.href=url instead of window.open(url) for IE to download the pdf. p=geographika,me r=elemoine (closes #399)

Modified: core/trunk/geoext/lib/GeoExt/data/PrintProvider.js
===================================================================
--- core/trunk/geoext/lib/GeoExt/data/PrintProvider.js	2011-03-15 19:44:40 UTC (rev 2622)
+++ core/trunk/geoext/lib/GeoExt/data/PrintProvider.js	2011-03-18 15:34:29 UTC (rev 2623)
@@ -491,9 +491,9 @@
      */
     download: function(url) {
         if (this.fireEvent("beforedownload", this, url) !== false) {
-            if (Ext.isOpera || Ext.isIE) {
-                // Make sure that Opera and IE don't replace the
-                // content tab with the pdf
+            if (Ext.isOpera) {
+                // Make sure that Opera don't replace the content tab with
+                // the pdf
                 window.open(url);
             } else {
                 // This avoids popup blockers for all other browsers



More information about the Commits mailing list