Changeset c43a815 in osmose-frontend


Ignore:
Timestamp:
May 6, 2014 10:37:21 PM (6 years ago)
Author:
Jocelyn Jaubert <jocelyn.jaubert@…>
Children:
1277072
Parents:
20b0abc
git-author:
Jocelyn Jaubert <jocelyn.jaubert@…> (06/05/2014 20:07:11)
git-committer:
Jocelyn Jaubert <jocelyn.jaubert@…> (06/05/2014 22:37:21)
Message:

Fix spinner for Osmose.Coverage.js

File:
1 edited

Legend:

Unmodified
Added
Removed
  • static/map/Osmose.Coverage.js

    r96314da rc43a815  
    1010 
    1111  onAdd: function (map, insertAtTheBottom) { 
     12    this._map = map; 
    1213    if (this._geojson === null) { 
    1314      this.fetchData(); 
     
    1920  fetchData: function () { 
    2021    var self = this; 
     22    this._map.spin(true); 
    2123    $.ajax({ 
    2224      'url': this._geojson_url 
     
    2426      self.addData(data); 
    2527      self._geojson = data; 
     28    }).always(function () { 
     29      self._map.spin(false); 
    2630    }); 
    2731  }, 
Note: See TracChangeset for help on using the changeset viewer.