Changeset 3833

Show
Ignore:
Timestamp:
07/21/11 14:55:18 (10 months ago)
Author:
fvanderbiest
Message:

camptocamp/geobretagne sandbox: applied patch so that debug mode works again with FF4 and later

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • sandbox/camptocamp/MapFishGeoBretagne/mapfish/MapFish.js

    r2597 r3833  
    143143     
    144144        for (var i = 0; i < jsfiles.length; i++) { 
    145             if (/MSIE/.test(navigator.userAgent) || /Safari/.test(navigator.userAgent)) { 
    146                 var currentScriptTag = "<script src='" + host + jsfiles[i] + "'></script>";  
    147                 allScriptTags += currentScriptTag; 
    148             } else { 
    149                 var s = document.createElement("script"); 
    150                 s.src = host + jsfiles[i]; 
    151                 var h = document.getElementsByTagName("head").length ?  
    152                            document.getElementsByTagName("head")[0] :  
    153                            document.body; 
    154                 h.appendChild(s); 
    155             } 
     145            var currentScriptTag = "<script src='" + host + jsfiles[i] + "'></script>";  
     146            allScriptTags += currentScriptTag; 
    156147        } 
    157         if (allScriptTags) { 
    158             document.write(allScriptTags); 
    159         } 
     148        document.write(allScriptTags); 
    160149    } 
    161150})();