Changeset 1251

Show
Ignore:
Timestamp:
07/14/09 19:41:17 (4 years ago)
Author:
tschaub
Message:

r1250 for the branch

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • apps/opengeo/geoexplorer/branches/0.1.x/lib/GeoExplorer.js

    r1192 r1251  
    999999     */  
    10001000    bookmark: function(){ 
    1001         var config = this.extractConfiguration(); 
    1002  
    1003         var query = Ext.urlEncode({q: Ext.util.JSON.encode(config)}); 
    1004  
    1005         var url =  
    1006             document.location.protocol + "//" + 
    1007             document.location.hostname + 
    1008             document.location.pathname + "?" + query; 
     1001 
     1002        var params = Ext.apply( 
     1003            OpenLayers.Util.getParameters(), 
     1004            {q: Ext.util.JSON.encode(this.extractConfiguration())} 
     1005        ); 
     1006         
     1007        // disregard any hash in the url, but maintain all other components 
     1008        var url = 
     1009            document.location.href.split("?").shift() + 
     1010            "?" + Ext.urlEncode(params); 
    10091011 
    10101012        var win = new Ext.Window({