Skip to content

Commit c7a87b4

Browse files
committed
Add idCLass for key path classes
1 parent 434d858 commit c7a87b4

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/directives/sf-field.directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ sfPath, sfSelect) {
230230

231231
// append the field-id to the htmlClass
232232
scope.form.htmlClass = scope.form.htmlClass || '';
233-
scope.form.htmlClass += (scope.form.htmlClass ? ' ' : '') + scope.fieldId(false) + ' ' + scope.fieldId(false, true);
233+
scope.idClass = scope.fieldId(false) + ' ' + scope.fieldId(false, true);
234234

235235
var form = scope.form;
236236

src/schema-form.module.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,22 @@ try {
2424
//This throws an expection if module does not exist.
2525
angular.module('ngSanitize');
2626
deps.push('ngSanitize');
27-
} catch (e) {}
27+
}
28+
catch (e) {}
2829

2930
try {
3031
//This throws an expection if module does not exist.
3132
angular.module('ui.sortable');
3233
deps.push('ui.sortable');
33-
} catch (e) {}
34+
}
35+
catch (e) {}
3436

3537
try {
3638
//This throws an expection if module does not exist.
3739
angular.module('angularSpectrumColorpicker');
3840
deps.push('angularSpectrumColorpicker');
39-
} catch (e) {}
41+
}
42+
catch (e) {}
4043

4144
angular
4245
.module('schemaForm', deps)

0 commit comments

Comments
 (0)