diff --git a/app/common/directives/layout-class.directive.js b/app/common/directives/layout-class.directive.js index 197ce624ac..7ea3170762 100644 --- a/app/common/directives/layout-class.directive.js +++ b/app/common/directives/layout-class.directive.js @@ -14,13 +14,8 @@ function LayoutClassDirective() { LayoutClassController.$inject = ['$scope', '$rootScope', '$window', 'Util']; function LayoutClassController($scope, $rootScope, $window, Util) { var isEmbed = ($window.self !== $window.top) ? true : false; - // In the case of map we omit the layout-a class - var isMap = (Util.currentUrl()) ? Util.currentUrl().indexOf('map') > 0 : false; - if (!isEmbed) { $rootScope.setLayout('layout-' + $scope.layout); - } else if (isEmbed && isMap) { - $rootScope.setLayout('layout-embed'); } else { // If we are in embed mode // we must append the layout to the embed layout diff --git a/app/main/posts/detail/post-detail-data.directive.js b/app/main/posts/detail/post-detail-data.directive.js index 53c6401b1b..f91259f8d0 100644 --- a/app/main/posts/detail/post-detail-data.directive.js +++ b/app/main/posts/detail/post-detail-data.directive.js @@ -61,10 +61,10 @@ function PostDetailDataController( $scope.$watch('post', function (post) { activate(); }); - /* need to check for embed here to set the correct class - * if coming from map to detail-view in embed, TODO: should go to a service! */ - var isEmbed = ($window.self !== $window.top) ? true : false; - isEmbed ? $rootScope.setLayout('layout-d layout-embed') : $rootScope.setLayout('layout-d'); + // /* need to check for embed here to set the correct class + // * if coming from map to detail-view in embed, TODO: should go to a service! */ + // var isEmbed = ($window.self !== $window.top) ? true : false; + // isEmbed ? $rootScope.setLayout('layout-d layout-embed') : $rootScope.setLayout('layout-d'); $scope.post = $scope.post; $scope.post_task = {}; diff --git a/app/main/posts/detail/post-detail-data.html b/app/main/posts/detail/post-detail-data.html index c7ccdbed5e..f8f4d04515 100644 --- a/app/main/posts/detail/post-detail-data.html +++ b/app/main/posts/detail/post-detail-data.html @@ -1,4 +1,5 @@
+