Skip to content

Commit

Permalink
Close modal spinner only at the very end
Browse files Browse the repository at this point in the history
  • Loading branch information
dgorissen committed Aug 26, 2014
1 parent ef5ceaa commit 778e72b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/scripts/mapctrl.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ angular.module('taarifaWaterpointsApp')
# FIXME: find a better solution than this "magic number" for timeout
$timeout ->
map.invalidateSize()
modalSpinner.close()
, 2000

return map
)

Expand All @@ -231,5 +233,4 @@ angular.module('taarifaWaterpointsApp')

# Initialise the map
initMap([], new L.LatLng(-6.3153, 35.15625))
modalSpinner.close()
)

0 comments on commit 778e72b

Please sign in to comment.