Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 231 Rev 232
Línea 1230... Línea 1230...
1230
                            $('#form-option #option-value').val('1');
1230
                            $('#form-option #option-value').val('1');
1231
                            $('#form-option #option-value').parent().hide();
1231
                            $('#form-option #option-value').parent().hide();
1232
                        }
1232
                        }
1233
                        renderSectionData(objFormGenerator.sections);
1233
                        renderSectionData(objFormGenerator.sections);
1234
                        $('#modal-option h4[class="modal-title"]').html('LABEL_ADD LABEL_OPTION');
1234
                        $('#modal-option h4[class="modal-title"]').html('LABEL_ADD LABEL_OPTION');
1235
            $('#modal-option').modal('show');
1235
                        $('#modal-option').modal('show');
1236
            return true;
1236
                        return true;
1237
                    }
1237
                    }
1238
                }
1238
                }
1239
            }
1239
            }
1240
        }
1240
        }
1241
    });
1241
    });
Línea 1437... Línea 1437...
1437
     */
1437
     */
1438
    const removeTags = (str) => str.toString().replace( /(<([^>]+)>)/ig, '')
1438
    const removeTags = (str) => str.toString().replace( /(<([^>]+)>)/ig, '')
1439
    /**
1439
    /**
1440
     * Render Sections data
1440
     * Render Sections data
1441
     */
1441
     */
1442
    const renderSectionData = (data) =>{
-
 
1443
console.log(data)
-
 
1444
        return  $("#rows").html($("#sectionTemplate").render(data, {
1442
    const renderSectionData = (data) => $("#rows").html($("#sectionTemplate").render(data, {
1445
        getType: getQuestionTypeBySlug,
1443
        getType: getQuestionTypeBySlug,
1446
        removeTags: removeTags
1444
        removeTags: removeTags
1447
    }));
1445
    }));
Línea 1448... Línea 1446...
1448
 
1446
 
1449
    }
1447
 
1450
    /**
1448
    /**
1451
     * Clear Div Section data 
1449
     * Clear Div Section data 
1452
     */
1450
     */
1453
    const clearSectionData = () => $("#rows").html('');
1451
    const clearSectionData = () => $("#rows").html('');