From 4849808ee9172d3e9d7c27bd1656d8fd10127dca Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Fri, 5 Jun 2015 13:48:31 -0400 Subject: [PATCH] Fixing blue 'flashMessage' box that flashes on license page the license controller had a setTimeout that was pausing the logic of the license controller which was causing a blue rectangle to flash on the license page. --- awx/ui/static/js/controllers/License.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/awx/ui/static/js/controllers/License.js b/awx/ui/static/js/controllers/License.js index b870026854..7d9228f95e 100644 --- a/awx/ui/static/js/controllers/License.js +++ b/awx/ui/static/js/controllers/License.js @@ -143,14 +143,11 @@ export function LicenseController(ClearScope, $location, $rootScope, $compile, $ $('#license_tabs li:eq(2) a').tab('show'); } - setTimeout(function() { - $('#license_license_json').attr('ng-required' , 'true' ); - $('#license_eula_agreement_chbox').attr('ng-required' , 'true' ); - $('#license_form_submit_btn').attr('ng-disabled' , "license_form.$invalid" ); - var e = angular.element(document.getElementById('license-modal-dialog')); - $compile(e)($scope); - // $('#license-modal-dialog').dialog('open'); - }, 300); + $('#license_license_json').attr('ng-required' , 'true' ); + $('#license_eula_agreement_chbox').attr('ng-required' , 'true' ); + $('#license_form_submit_btn').attr('ng-disabled' , "license_form.$invalid" ); + var e = angular.element(document.getElementById('license-modal-dialog')); + $compile(e)($scope); if (IsAdmin()) { setTimeout(function() {