mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
Fixed js error that stopped login dialog from rendering in FF.
This commit is contained in:
@@ -120,7 +120,11 @@ angular.module('AWDirectives', ['RestServices', 'Utilities', 'AuthService', 'Hos
|
|||||||
elm.removeAttr('required');
|
elm.removeAttr('required');
|
||||||
if ($(elm).hasClass('lookup')) {
|
if ($(elm).hasClass('lookup')) {
|
||||||
var txt = $(elm).parent().parent().parent().find('label').text();
|
var txt = $(elm).parent().parent().parent().find('label').text();
|
||||||
$(elm).parent().parent().parent().find('label').text(txt.replace(/^*/,''));
|
var txt = txt.replace(/^\*/,'');
|
||||||
|
var label = $(elm).parent().parent().parent().find('label');
|
||||||
|
if (label) {
|
||||||
|
label.text(txt);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (scope[attrs.awRequiredWhen] && (viewValue == undefined || viewValue == null || viewValue == '')) {
|
if (scope[attrs.awRequiredWhen] && (viewValue == undefined || viewValue == null || viewValue == '')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user