From f423d23e9a660ae65c4f7100917ffb496c652125 Mon Sep 17 00:00:00 2001 From: "didier.amyot" Date: Fri, 11 Jul 2014 11:08:21 -0400 Subject: [PATCH] - fixed bug - ui goodies --- client/coffee/controllers/geojsonmapCtrl.coffee | 4 ++-- client/coffee/directives/value.coffee | 1 + client/partials/directives/searchBar.html | 2 +- client/partials/document.html | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/client/coffee/controllers/geojsonmapCtrl.coffee b/client/coffee/controllers/geojsonmapCtrl.coffee index 8247342..e43fcaa 100644 --- a/client/coffee/controllers/geojsonmapCtrl.coffee +++ b/client/coffee/controllers/geojsonmapCtrl.coffee @@ -2,13 +2,13 @@ root = this; -mapCenter = +defaultMapCenter = lat: 46.1227 lng: -72.6169 zoom: 7 getLocalStorageCenter = () -> - JSON.parse(localStorage.getItem("mapCenter")) + JSON.parse(localStorage.getItem("mapCenter")) or defaultMapCenter diff --git a/client/coffee/directives/value.coffee b/client/coffee/directives/value.coffee index f436836..2d8046f 100644 --- a/client/coffee/directives/value.coffee +++ b/client/coffee/directives/value.coffee @@ -35,6 +35,7 @@ directive = () -> $scope.isNumber = _.isNumber($scope.value) $scope.isObject = _.isObject($scope.value) $scope.isArray = _.isArray($scope.value) + $scope.isBoolean = _.isBoolean($scope.value) ] return directive diff --git a/client/partials/directives/searchBar.html b/client/partials/directives/searchBar.html index e961444..8c975df 100644 --- a/client/partials/directives/searchBar.html +++ b/client/partials/directives/searchBar.html @@ -11,7 +11,7 @@
  • - Clear + Clear
  • diff --git a/client/partials/document.html b/client/partials/document.html index 56610c7..912e026 100644 --- a/client/partials/document.html +++ b/client/partials/document.html @@ -43,6 +43,6 @@
    - took {{enlapsed_time}} seconds | raw + took {{enlapsed_time | number | replaceAllCommasBySpaces}} seconds | raw
    \ No newline at end of file