Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 235 | Rev 241 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 235 Rev 240
Línea 168... Línea 168...
168
                'name': name,
168
                'name': name,
169
                'text': text,
169
                'text': text,
170
                'value': value,
170
                'value': value,
171
                'position': position,
171
                'position': position,
172
                'questions': [],
172
                'questions': [],
-
 
173
                'status': 0
173
            }
174
            }
174
            this.sections.push(section);
175
            this.sections.push(section);
175
        },
176
        },
176
         /**
177
         /**
177
         * Edit element to section array 
178
         * Edit element to section array 
Línea 232... Línea 233...
232
                        'position': position,
233
                        'position': position,
233
                        'maxlength': maxlength,
234
                        'maxlength': maxlength,
234
                        'multiline': multiline,
235
                        'multiline': multiline,
235
                        'range': range,
236
                        'range': range,
236
                        'options': [],
237
                        'options': [],
-
 
238
                        'answer': type=='multiple' ? [] : ''
237
                    }
239
                    }
-
 
240
                    this.sections[i].push({'status':0});
238
                    this.sections[i].questions.push(question);
241
                    this.sections[i].questions.push(question);
239
                    renderTable = true;
242
                    renderTable = true;
240
                    break;
243
                    break;
241
                }
244
                }
242
            }
245
            }
Línea 267... Línea 270...
267
                            if (type == 'rating-range') {
270
                            if (type == 'rating-range') {
268
                                this.sections[i].questions[j].range = range;
271
                                this.sections[i].questions[j].range = range;
269
                            } else {
272
                            } else {
270
                                this.sections[i].questions[j].range = 0;
273
                                this.sections[i].questions[j].range = 0;
271
                            }
274
                            }
-
 
275
 
-
 
276
                            if(type=='multiple'){
-
 
277
                                this.sections[i].questions[j].answer = [];  
-
 
278
                            }else{
-
 
279
                                this.sections[i].questions[j].answer = '';  
-
 
280
                            }
-
 
281
 
272
                            renderTable = true;
282
                            renderTable = true;
273
                            break;
283
                            break;
274
                        }
284
                        }
275
                    }
285
                    }
276
                }
286
                }