Fixed js error that stopped login dialog from rendering in FF.

This commit is contained in:
chouseknecht 2013-09-09 15:18:39 -04:00
parent 1ee58f08c4
commit b363c71137

View File

@ -120,7 +120,11 @@ angular.module('AWDirectives', ['RestServices', 'Utilities', 'AuthService', 'Hos
elm.removeAttr('required');
if ($(elm).hasClass('lookup')) {
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 == '')) {