1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

removed the resizing and added more styling

i removed the lines of code that would resize the portal containers and moved it to the portal jobs list widget b/c resizing logic already happens there. But I added formatting of the 'Action' columns for both widgets to change them to 'Launch' and 'Details' respectively
This commit is contained in:
Jared Tabor 2014-10-22 16:55:42 -04:00
parent adedb3a629
commit 742a004f29

View File

@ -71,9 +71,6 @@ function PortalController($scope, $compile, $routeParams, $rootScope, $location,
$scope.removeLoadPortal();
}
$scope.removeLoadPortal = $scope.$on('LoadPortal', function () {
// winHeight = $(window).height();
// available_height = Math.floor(winHeight - $('#main-menu-container .navbar').outerHeight() - $('#refresh-row').outerHeight() - 30);
// $('.portal-container').height(available_height);
view.inject( list, {
id : 'portal-job-template',
@ -109,10 +106,18 @@ function PortalController($scope, $compile, $routeParams, $rootScope, $location,
PortalJobsWidget({
scope: $scope,
target: 'portal-jobs',
// dashboard: data
searchSize: 'col-lg-6 col-md-6'
});
});
if ($scope.removeWidgetLoaded) {
$scope.removeWidgetLoaded();
}
$scope.removeWidgetLoaded = $scope.$on('WidgetLoaded', function () {
$('.actions-column:eq(0)').text('Launch');
$('.actions-column:eq(1)').text('Details');
$('.list-well:eq(1)').css('margin-top' , '0px');
});
});
$scope.submitJob = function (id) {
PlaybookRun({ scope: $scope, id: id });
};