From 742a004f295c3922ae2204bb3271af7fa97e0d06 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Wed, 22 Oct 2014 16:55:42 -0400 Subject: [PATCH] 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 --- awx/ui/static/js/controllers/Portal.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/awx/ui/static/js/controllers/Portal.js b/awx/ui/static/js/controllers/Portal.js index 5931715da4..6623fc62c4 100644 --- a/awx/ui/static/js/controllers/Portal.js +++ b/awx/ui/static/js/controllers/Portal.js @@ -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 }); };