Changeset 322


Ignore:
Timestamp:
04/01/09 22:08:47 (9 years ago)
Author:
sbenthall
Message:

Bookmark tool now gives user a URL for bookmark

File:
1 edited

Legend:

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

    r321 r322  
    266266        var toolbarItems = [
    267267            new Ext.Button({
     268                text: "Bookmark",
     269                handler: this.bookmark,
     270                scope: this
     271            }),
     272            new Ext.Button({
    268273                text: "GetFeatureInfo",
    269274                enableToggle: true,
     
    314319            document.location.pathname + "?" + query;
    315320
     321        var html =
     322            "<form>" +
     323            "<p>You can come back to this map later using " +
     324            "the following URL:</p>" +
     325            "<input type='text' readonly='' value='" + url +"'>"
     326            "</input></form>";
     327
     328        var win = new Ext.Window({
     329            title: "Bookmark URL",
     330            html: html
     331        });
     332
     333        win.show();
     334
    316335        return url;
    317336
Note: See TracChangeset for help on using the changeset viewer.