From ee5ec2b5784bfbac33f698e2a41743c9ecd1f087 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Fri, 18 Jan 2013 22:29:31 +0530 Subject: [PATCH] Correctly set the openlayers path as scripts are loaded dynamically --- js/openlayers/OpenLayers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/openlayers/OpenLayers.js b/js/openlayers/OpenLayers.js index 66b61887ba..b9efb113a2 100644 --- a/js/openlayers/OpenLayers.js +++ b/js/openlayers/OpenLayers.js @@ -90,7 +90,7 @@ * issues. Applications that use the code below will continue to work seamlessly * when that happens. */ -var OpenLayers={singleFile:true};(function(){var singleFile=(typeof OpenLayers=="object"&&OpenLayers.singleFile);var scriptLocation;window.OpenLayers={_scriptName:(!singleFile)?"lib/OpenLayers.js":"OpenLayers.js",_getScriptLocation:function(){if(scriptLocation!=undefined){return scriptLocation;} +var OpenLayers={singleFile:true};(function(){var singleFile=(typeof OpenLayers=="object"&&OpenLayers.singleFile);var scriptLocation="js/openlayers/";window.OpenLayers={_scriptName:(!singleFile)?"lib/OpenLayers.js":"OpenLayers.js",_getScriptLocation:function(){if(scriptLocation!=undefined){return scriptLocation;} scriptLocation="";var isOL=new RegExp("(^|(.*?\\/))("+OpenLayers._scriptName+")(\\?|$)");var scripts=document.getElementsByTagName('script');for(var i=0,len=scripts.length;i";}else{var s=document.createElement("script");s.src=host+jsfiles[i];var h=document.getElementsByTagName("head").length?document.getElementsByTagName("head")[0]:document.body;h.appendChild(s);}}