(function () { 'use strict'; angular .module('hyperion') .controller('system.ProjectsController', ['$http', '$scope', '$timeout', '$sessionStorage', '$location', 'link', 'timerange', 'sysClock', 'CONFIG', '$q', 'authService', function($http, $scope, $timeout, $sessionStorage, $location, link, timerange, sysClock, CONFIG, $q, authService){ // set #content div margin if($sessionStorage.currentUser !== undefined) { if($sessionStorage.currentUser.smallMenu) { $("#content").css('margin-left', 50); } } var scopeIsActive = true; $scope.$on('$destroy', function() { scopeIsActive = false; }); }]) })();