Remove extraneous unused code/comments

This commit is contained in:
Joe Fiorini
2015-01-27 16:23:51 -05:00
parent e567386c69
commit 38b8ed4e9e
4 changed files with 2 additions and 61 deletions

View File

@@ -72,26 +72,6 @@ function Home($scope, $compile, $routeParams, $rootScope, $location, $log, Wait,
//Wait('start');
}
if ($scope.removeWidgetLoaded) {
$scope.removeWidgetLoaded();
}
$scope.removeWidgetLoaded = $scope.$on('WidgetLoaded', function (e, label, jobscope, schedulescope) {
// Once all the widgets report back 'loaded', turn off Wait widget
if(label==="dashboard_jobs"){
jobs_scope = jobscope;
schedule_scope = schedulescope;
}
loadedCount++;
if (loadedCount === waitCount) {
// console.log('binding to resize');
// angular.element($window).on('resize', _.debounce(function() {
// console.log('resize from controller');
// Wait('stop');
// }, 500));
// $(window).resize();
}
});
if ($scope.removeDashboardReady) {
$scope.removeDashboardReady();
}
@@ -130,23 +110,6 @@ function Home($scope, $compile, $routeParams, $rootScope, $location, $log, Wait,
});
if ($rootScope.removeJobStatusChange) {
$rootScope.removeJobStatusChange();
}
// $rootScope.removeJobStatusChange = $rootScope.$on('JobStatusChange', function() {
// jobs_scope.refreshJobs();
// $scope.$emit('ReloadJobStatusGraph');
// });
if ($rootScope.removeScheduleChange) {
$rootScope.removeScheduleChange();
}
$rootScope.removeScheduleChange = $rootScope.$on('ScheduleChange', function() {
schedule_scope.refreshSchedules();
$scope.$emit('ReloadJobStatusGraph');
});
$scope.showActivity = function () {
Stream({
scope: $scope