Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Iosif committed Oct 3, 2017
2 parents 5544984 + 6b82100 commit 7b371b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions app/main/posts/views/post-view-map.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ function PostViewMap(PostEndpoint, Maps, _, PostFilters, L, $q, $rootScope, $com
var limit = 200;
var requestBlockSize = 5;
var numberOfChunks = 0;
$scope.getUIClass = getUIClass;
$scope.getUIClass = $location.path() === '/map/noui' ? 'map-only' : 'full-size';

activate();

function activate() {
// Start loading data
var posts = loadPosts();
var createMap = Maps.createMap(element[0].querySelector('#map'))
.then(function (data) {
var createMapDirective = Maps.createMap(element[0].querySelector('#map'));
var createMap = createMapDirective.then(function (data) {
map = data;
});

Expand Down Expand Up @@ -57,9 +57,6 @@ function PostViewMap(PostEndpoint, Maps, _, PostFilters, L, $q, $rootScope, $com
markers = undefined;
}
}
function getUIClass() {
return $location.path() === '/map/noui' ? 'map-only' : 'full-size';
}

function addPostsToMap(posts) {

Expand Down
4 changes: 2 additions & 2 deletions app/main/posts/views/post-view-map.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div class="map-view">
<div id="map" class="map" ng-class="getUIClass()" ></div>
</div>
<div id="map" class="map {{getUIClass}}" ></div>
</div>

0 comments on commit 7b371b1

Please sign in to comment.