added websockets to dashboard

This commit is contained in:
Jared Tabor
2014-08-29 16:48:22 -04:00
parent c020e38a4a
commit 8d15d0ade7
7 changed files with 39 additions and 69 deletions

View File

@@ -55,7 +55,7 @@ angular.module('DashboardJobsWidget', ['RestServices', 'Utilities'])
listCount++;
if (listCount === 1) {
//api_complete = true;
scope.$emit('WidgetLoaded');
scope.$emit('WidgetLoaded', "dashboard_jobs", jobs_scope, scheduled_scope);
}
});

View File

@@ -81,6 +81,13 @@ angular.module('JobStatusGraphWidget', ['RestServices', 'Utilities'])
});
}
if ($rootScope.removeReloadJobStatusGraph) {
$rootScope.removeReloadJobStatusGraph();
}
$rootScope.removeReloadJobStatusGraph = $rootScope.$on('ReloadJobStatusGraph', function() {
createGraph();
});
element = angular.element(document.getElementById(target));
element.html(html);
$compile(element)(scope);