Changeset 314


Ignore:
Timestamp:
04/01/09 20:28:25 (8 years ago)
Author:
sbenthall
Message:

JSON from query string parameter 'q' is now used in Viewer configuration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/opengeo/geoexplorer/trunk/lib/Viewer.js

    r291 r314  
    1919     */
    2020    constructor: function(config) {
     21
     22        var query = Ext.urlDecode(document.location.search.substr(1));
     23        var queryConfig = Ext.util.JSON.decode(query.q);
    2124       
    22         this.initialConfig = Ext.apply({}, config);
     25        this.initialConfig = Ext.apply({}, queryConfig, config);
    2326        Ext.apply(this, config);
    2427
Note: See TracChangeset for help on using the changeset viewer.