From 778e72b5a733cb14d173862407b44c94841d2a1f Mon Sep 17 00:00:00 2001 From: Dirk Gorissen Date: Tue, 26 Aug 2014 17:34:35 +0300 Subject: [PATCH] Close modal spinner only at the very end --- app/scripts/mapctrl.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/scripts/mapctrl.coffee b/app/scripts/mapctrl.coffee index 72f547e..0f37451 100644 --- a/app/scripts/mapctrl.coffee +++ b/app/scripts/mapctrl.coffee @@ -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 ) @@ -231,5 +233,4 @@ angular.module('taarifaWaterpointsApp') # Initialise the map initMap([], new L.LatLng(-6.3153, 35.15625)) - modalSpinner.close() )