Changeset 3016 for contribs

Show
Ignore:
Timestamp:
10/02/09 19:45:28 (3 years ago)
Author:
alex
Message:

made popup a property of api in order to close previous popup when opening a new one

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • contribs/mapfish-api/trunk/MapFishApi/js/mapfish_api.js

    r2994 r3016  
    8484     */ 
    8585    selectCtrl: null, 
     86 
     87    /** 
     88     * Property: popup 
     89     * GeoExt.Popup 
     90     */ 
     91    popup: null, 
    8692 
    8793    /** 
     
    804810        } 
    805811 
     812        if (this.popup) { 
     813            this.popup.close(); 
     814        } 
     815 
    806816        if (html) { 
    807             var popup = new GeoExt.Popup({ 
     817            this.popup = new GeoExt.Popup({ 
    808818                map: this.map, 
    809819                feature: feature, 
     
    816826            }); 
    817827            if (feature) { 
    818                 popup.on({ 
     828                this.popup.on({ 
    819829                    close: function() { 
    820830                        if (OpenLayers.Util.indexOf(this.drawLayer.selectedFeatures, 
     
    826836                }); 
    827837            } 
    828             popup.show(); 
     838            this.popup.show(); 
    829839        } 
    830840