OpenLayers OpenLayers

Changeset 2138

Show
Ignore:
Timestamp:
01/11/07 17:04:59 (2 years ago)
Author:
euzuro
Message:

tests pass in ff, ie6, ie7, and more or less in opera. this is a fix for #470

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Util.js

    r2124 r2138  
    569569OpenLayers.Util.getArgs = function(url) { 
    570570    if(url == null) { 
    571         var query = window.location.search.substring(1); 
    572     } else { 
    573         var query = (url.indexOf('?') == -1) ? 
    574                         '' : url.substring(url.indexOf('?') + 1); 
    575     } 
     571        url = window.location.href; 
     572    } 
     573    var query = (url.indexOf('?') != -1) ? url.substring(url.indexOf('?') + 1) : ''; 
     574     
    576575    var args = new Object(); 
    577576    pairs = query.split(/[&;]/);