mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-28 10:51:49 -05:00
Remove extraneous unused code/comments
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user