[Commits] r1604 - sandbox/ahocevar/playground/ux/Printing/ux/data
commits at geoext.org
commits at geoext.org
Wed Dec 23 10:13:45 CET 2009
Author: ahocevar
Date: 2009-12-23 10:13:45 +0100 (Wed, 23 Dec 2009)
New Revision: 1604
Modified:
sandbox/ahocevar/playground/ux/Printing/ux/data/PrintProvider.js
Log:
fixed getAbsoluteUrl function to also work in IE. Thanks bartvde for making me aware of the issue.
Modified: sandbox/ahocevar/playground/ux/Printing/ux/data/PrintProvider.js
===================================================================
--- sandbox/ahocevar/playground/ux/Printing/ux/data/PrintProvider.js 2009-12-23 01:01:46 UTC (rev 1603)
+++ sandbox/ahocevar/playground/ux/Printing/ux/data/PrintProvider.js 2009-12-23 09:13:45 UTC (rev 1604)
@@ -370,10 +370,14 @@
* Converts the provided url to an absolute url.
*/
getAbsoluteUrl: function(url) {
- return Ext.DomHelper.overwrite(document.createElement("a"), {
- tag: "a",
- href: url
- }).href;
+ var a;
+ if(Ext.isIE) {
+ a = document.createElement("<a href='" + url + "'/>");
+ } else {
+ a = document.createElement("a");
+ a.href = url;
+ }
+ return a.href;
},
/** private: property[encoders]
More information about the Commits
mailing list