Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 998 Rev 999
Línea 1175... Línea 1175...
1175
        e.preventDefault();
1175
        e.preventDefault();
1176
        $('#form-main #form-continue').val('0')
1176
        $('#form-main #form-continue').val('0')
1177
        $('#form-main').submit();
1177
        $('#form-main').submit();
1178
    });
1178
    });
1179
    /**
1179
    /**
1180
     * Get section type
-
 
1181
     */
-
 
1182
    const getsectionTypeBySlug = (slug_section, slug_section) => {
-
 
1183
        for (i = 0; i < objFormGenerator.sections.length; i++) {
-
 
1184
            if (slug_section == objFormGenerator.sections[i].slug_section) {
-
 
1185
                for (j = 0; j < objFormGenerator.sections[i].sections.length; j++) {
-
 
1186
                    if (slug_section == objFormGenerator.sections[i].sections[j].slug_section) {
-
 
1187
                        return objFormGenerator.sections[i].sections[j].type;
-
 
1188
                    }
-
 
1189
                }
-
 
1190
            }
-
 
1191
        }
-
 
1192
    }
-
 
1193
    /**
-
 
1194
     * Remove Html Tags
1180
     * Remove Html Tags
1195
     */
1181
     */
1196
    const removeTags = (str) => str.toString().replace( /(<([^>]+)>)/ig, '')
1182
    const removeTags = (str) => str.toString().replace( /(<([^>]+)>)/ig, '')
1197
    /**
1183
    /**
1198
     * Render Sections data
1184
     * Render Sections data