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.
This commit is contained in:
Jared Tabor 2015-06-05 13:48:31 -04:00
parent 53b16c09e8
commit 4849808ee9

View File

@ -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() {