AC-441,442,443

This commit is contained in:
chouseknecht
2013-09-10 17:12:36 -04:00
parent 365f327887
commit 7246ab2674
2 changed files with 8 additions and 3 deletions

View File

@@ -90,7 +90,12 @@ angular.module('FormGenerator', ['GeneratorHelpers', 'ngCookies'])
// Prepend an asterisk to required field label
$('.form-control[required]').each(function() {
var txt = $(this).parent().parent().find('label').prepend('* ');
var label = $(this).parent().parent().find('label');
var rgx = /^\*/;
if ( !rgx.test(label.text()) ) {
// required field does not have leading *
label.prepend('* ');
}
});
if (options.modal) {