Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 397 Rev 398
Línea 77... Línea 77...
77
        },
77
        },
78
        /**
78
        /**
79
         * Render array sections
79
         * Render array sections
80
         */
80
         */
81
        this.renderSection = function(slug_section) {
81
        this.renderSection = function(slug_section) {
82
            console.log(slug_section);
-
 
83
            console.log(this.sections);
-
 
84
            var s = '';
82
            var s = '';
85
            for (i = 0; i < this.sections.length; i++) {
83
            for (i = 0; i < this.sections.length; i++) {
86
                if (slug_section != this.sections[i].slug_section) {
84
                if (slug_section != this.sections[i].slug_section) {
87
                    continue;
85
                    continue;
88
                }
86
                }
Línea 428... Línea 426...
428
     */
426
     */
429
    const removeTags = (str) => str.toString().replace(/(<([^>]+)>)/ig, '')
427
    const removeTags = (str) => str.toString().replace(/(<([^>]+)>)/ig, '')
430
    /**
428
    /**
431
     * Render Sections data
429
     * Render Sections data
432
     */
430
     */
433
    const renderSectionData = (data) => {
-
 
434
        console.log(data);
-
 
435
        return $("#rows").html($("#sectionTemplate").render(data, {
431
    const renderSectionData = (data) => $("#rows").html($("#sectionTemplate").render(data, {
436
        removeTags: removeTags,
432
        removeTags: removeTags,
437
        getAnswer: getAnswer,
433
        getAnswer: getAnswer,
438
        getStatus: getStatus
434
        getStatus: getStatus
439
    }))};
435
    }));
440
    /**
436
    /**
441
     * Clear Div Section data 
437
     * Clear Div Section data 
442
     */
438
     */
443
    const clearSectionData = () => $("#rows").html('');
439
    const clearSectionData = () => $("#rows").html('');
444
    /**
440
    /**