| .. | .. |
|---|
| 159 | 159 | **********************************************/ |
|---|
| 160 | 160 | |
|---|
| 161 | 161 | function _success(response) { |
|---|
| 162 | | - console.log('$resource') |
|---|
| 163 | | - console.log(response) |
|---|
| 162 | + console.debug('$resource action success') |
|---|
| 164 | 163 | } |
|---|
| 165 | 164 | function _fail(response) { |
|---|
| 166 | 165 | console |
|---|
| .. | .. |
|---|
| 244 | 243 | promises.push(refs[f.name].$promise); |
|---|
| 245 | 244 | }); |
|---|
| 246 | 245 | |
|---|
| 247 | | - console.log('promises: ' + promises.length |
|---|
| 248 | | - + ' ') |
|---|
| 249 | | - console.log(promises) |
|---|
| 250 | 246 | $q.all(promises) |
|---|
| 251 | 247 | .then(function() { |
|---|
| 252 | 248 | for(var i in refsFields) { |
|---|
| .. | .. |
|---|
| 254 | 250 | var rf = refsFields[i]; |
|---|
| 255 | 251 | var cat = that.getResource(rf.resource); |
|---|
| 256 | 252 | var pk = that.getPk(that.getMetadata(rf.resource)) |
|---|
| 257 | | - console.log('PK field for ' |
|---|
| 258 | | - + rf.name |
|---|
| 259 | | - + ' is ' |
|---|
| 260 | | - + pk) |
|---|
| 253 | + //console.log('PK field for ' + rf.name + ' is ' + pk) |
|---|
| 261 | 254 | var comboData = [] |
|---|
| 262 | 255 | refs[rf.name].forEach(function(row) { |
|---|
| 263 | 256 | comboData.push({ |
|---|
| .. | .. |
|---|
| 271 | 264 | }); |
|---|
| 272 | 265 | }) |
|---|
| 273 | 266 | refs[rf.name] = comboData; |
|---|
| 274 | | - console.log('Ready for combo for ' + rf.name) |
|---|
| 275 | | - console.log(comboData); |
|---|
| 276 | 267 | } |
|---|
| 277 | 268 | _current && _current.fields.forEach(function(f) { |
|---|
| 278 | 269 | if (f.values) |
|---|
| .. | .. |
|---|
| 280 | 271 | }); |
|---|
| 281 | 272 | }) |
|---|
| 282 | 273 | |
|---|
| 283 | | - console.log(refs); |
|---|
| 284 | 274 | return refs; |
|---|
| 285 | 275 | } |
|---|
| 286 | 276 | |
|---|