@@ -10,7 +10,6 @@ angular.module('schemaForm').config(
10
10
if ( ( schema . type === 'string' ) && ( "enum" in schema ) ) {
11
11
var f = schemaFormProvider . stdFormObj ( name , schema , options ) ;
12
12
f . key = options . path ;
13
- f . key = options . path ;
14
13
f . type = 'strapselect' ;
15
14
options . lookup [ sfPathProvider . stringify ( options . path ) ] = f ;
16
15
return f ;
@@ -31,27 +30,6 @@ angular.module('schemaForm').config(
31
30
32
31
schemaFormProvider . defaults . array . unshift ( multiselect ) ;
33
32
34
- var selectdynamic = function ( name , schema , options ) {
35
- if ( schema . type === 'string' ) {
36
- var f = schemaFormProvider . stdFormObj ( name , schema , options ) ;
37
- f . key = options . path ;
38
- f . type = 'strapselectdynamic' ;
39
- options . lookup [ sfPathProvider . stringify ( options . path ) ] = f ;
40
- return f ;
41
- }
42
- } ;
43
-
44
-
45
-
46
- var multiselectdynamic = function ( name , schema , options ) {
47
- if ( schema . type === 'array' ) {
48
- var f = schemaFormProvider . stdFormObj ( name , schema , options ) ;
49
- f . key = options . path ;
50
- f . type = 'strapmultiselectdynamic' ;
51
- options . lookup [ sfPathProvider . stringify ( options . path ) ] = f ;
52
- return f ;
53
- }
54
- } ;
55
33
56
34
//Add to the bootstrap directive
57
35
schemaFormDecoratorsProvider . addMapping ( 'bootstrapDecorator' , 'strapselect' ,
@@ -155,6 +133,7 @@ angular.module('schemaForm').controller('strapSelectController', ['$scope', '$ht
155
133
156
134
}
157
135
} ;
136
+
158
137
$scope . getOptions = function ( options ) {
159
138
// If defined, let the a callback function manipulate the options
160
139
if ( options . httpPost && options . httpPost . optionsCallback ) {
@@ -169,6 +148,7 @@ angular.module('schemaForm').controller('strapSelectController', ['$scope', '$ht
169
148
return options ;
170
149
}
171
150
} ;
151
+
172
152
$scope . fetchResult = function ( options ) {
173
153
if ( ! options ) {
174
154
@@ -218,6 +198,7 @@ angular.module('schemaForm').controller('strapSelectController', ['$scope', '$ht
218
198
219
199
}
220
200
} ;
201
+
221
202
$scope . findTitles = function ( _form )
222
203
{
223
204
result = [ ] ;
@@ -291,13 +272,11 @@ angular.module('schemaForm').filter('selectFilter', [function ($filter) {
291
272
controller . $eval ( strLocalModel + "=[]" ) ;
292
273
}
293
274
294
-
295
275
console . log ( "Input: " + JSON . stringify ( inputArray ) ) ;
296
276
console . log ( "Output: " + JSON . stringify ( data ) ) ;
297
277
console . log ( "Model value out : " + JSON . stringify ( localModel ) ) ;
298
278
console . log ( "----- Exiting filter for " + controller . form . title + "-----" ) ;
299
279
300
-
301
280
return data ;
302
281
} ;
303
282
} ] ) ;
0 commit comments