Skip to content

Commit e24d164

Browse files
committed
Removed ngModel builder and fixed html
1 parent 2485dd4 commit e24d164

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/bootstrap-decorator.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ function(decoratorsProvider, sfBuilderProvider, sfPathProvider) {
4646
args.form.schema.items.type &&
4747
args.form.schema.items.type.indexOf('object') === -1 &&
4848
args.form.schema.items.type.indexOf('array') === -1) {
49-
console.log('setting state modelValue', args.form);
5049
var strKey = sfPathProvider.stringify(args.form.key).replace(/"/g, '"') + '[$index]';
5150
state.modelValue = 'modelArray[$index]'; //(args.state.modelName || 'model') + (strKey[0] !== '[' ? '.' : '') + strKey;
5251
//state.modelValue = 'model' + sfPathProvider.normalize(args.form.key) + '[$index]'; // 'modelArray[$index]';
@@ -83,13 +82,13 @@ function(decoratorsProvider, sfBuilderProvider, sfPathProvider) {
8382
fieldset: {template: base + 'fieldset.html', builder: [sfField, simpleTransclusion, condition]},
8483
array: {template: base + 'array.html', builder: [sfField, ngModelOptions, ngModel, array, condition]},
8584
tabarray: {template: base + 'tabarray.html', builder: [sfField, ngModelOptions, ngModel, array, condition]},
86-
tabs: {template: base + 'tabs.html', builder: [sfField, ngModelOptions, ngModel, tabs, condition]},
85+
tabs: {template: base + 'tabs.html', builder: [sfField, ngModelOptions, tabs, condition]},
8786
section: {template: base + 'section.html', builder: [sfField, simpleTransclusion, condition]},
8887
conditional: {template: base + 'section.html', builder: [sfField, simpleTransclusion, condition]},
8988
actions: {template: base + 'actions.html', builder: defaults},
9089
select: {template: base + 'select.html', builder: defaults},
9190
checkbox: {template: base + 'checkbox.html', builder: defaults},
92-
checkboxes: {template: base + 'checkboxes.html', builder: [sfField, ngModelOptions, ngModel, array, condition]},
91+
checkboxes: {template: base + 'checkboxes.html', builder: [sfField, ngModelOptions, ngModel, array]},
9392
number: {template: base + 'default.html', builder: defaults},
9493
password: {template: base + 'default.html', builder: defaults},
9594
submit: {template: base + 'submit.html', builder: defaults},

src/tabs.html

-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@
1010

1111
<div class="tab-content {{form.fieldHtmlClass}}">
1212
</div>
13-
</div>
1413
</div>

0 commit comments

Comments
 (0)