 
 
     $scope.showDetails = (node) ->
+        $scope.isDetails = true;
         if node.type is 'o'
             $scope.selectedOrganisations = [{name: node.name}]
             $scope.selectedMedia = []

        update() if (oldValue isnt newValue)

    $scope.$watch 'selectedOrganisations', (newValue, oldValue) ->
        update()
    $scope.$watch 'selectedMedia', (newValue, oldValue) ->
        update()

    filterThreshold = "NoValue"
    $scope.$watch 'filter', (newValue,oldValue) ->

    $scope.progress = 20
    $scope.showSettings = true
    #$scope.org = null
    $scope.isDetails = false
    $scope.slider =
        from: 0
        to: 0
