Ignore:
Timestamp:
Jun 30, 2011, 3:56:59 PM (13 years ago)
Author:
dennisw
Message:

Fixed problem with removing user layers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/website/static/heatmap_extensions.js

    r9316 r9317  
    143143
    144144  /**
    145    * Toggles layerswitcher visibility.
    146    * On 'off', toggler shows a '+'.
    147    * On 'on', toggler shows a '-'.
     145   * Toggles category visibility.
     146   * On 'visible', toggler shows a '^'.
     147   * On 'invisible', toggler shows a 'v'.
    148148   */
    149149  $("#cat_hide").live("click", function(){
     
    213213    else{
    214214      $(this).text('(Add all users)');
    215       $.each(userlist, function(u, user){
    216         layer = map.getLayersByName(user);
     215      $.each($('#user span'), function(s, span){
     216        layer = map.getLayersByName(span.id);
    217217        map.removeLayer(layer[0]);
     218        $(span).remove();
    218219      });
    219220    }
Note: See TracChangeset for help on using the changeset viewer.