Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 222 Rev 223
Línea 1433... Línea 1433...
1433
                }
1433
                }
1434
            }
1434
            }
1435
        }
1435
        }
1436
    }
1436
    }
1437
    /**
1437
    /**
-
 
1438
     * Remove Html Tags
-
 
1439
     */
-
 
1440
    const removeTags = (str) => str.toString().replace( /(<([^>]+)>)/ig, '')
-
 
1441
    /**
1438
     * Render Sections data
1442
     * Render Sections data
1439
     */
1443
     */
1440
    const renderSectionData = (data) => $("#rows").html($("#sectionTemplate").render(data, {
1444
    const renderSectionData = (data) => $("#rows").html($("#sectionTemplate").render(data, {
1441
        getType: getQuestionTypeBySlug,
1445
        getType: getQuestionTypeBySlug,
1442
        removeTags: removeTags
1446
        removeTags: removeTags
Línea 1450... Línea 1454...
1450
     */
1454
     */
1451
    $('button.btn-refresh').click(function(e) {
1455
    $('button.btn-refresh').click(function(e) {
1452
        tableForm.fnDraw();
1456
        tableForm.fnDraw();
1453
    });
1457
    });
Línea 1454... Línea -...
1454
     
-
 
1455
    /**
-
 
1456
     * Remove Html Tags
-
 
1457
     */
-
 
1458
    const removeTags = (str) => str.toString().replace( /(<([^>]+)>)/ig, '')
1458
     
1459
});
1459
});
1460
JS;
1460
JS;
1461
$this->inlineScript()->captureEnd();
1461
$this->inlineScript()->captureEnd();
Línea 1746... Línea 1746...
1746
                            </tr>
1746
                            </tr>
1747
                            {{for questions}}
1747
                            {{for questions}}
1748
                            <tr class="tr-question">
1748
                            <tr class="tr-question">
1749
                                <td class="text-left">--LABEL_QUESTION</td>
1749
                                <td class="text-left">--LABEL_QUESTION</td>
1750
                                <td class="text-left">
1750
                                <td class="text-left">
1751
                                    {{~removeTags(text)}}
1751
                                    {{:~removeTags(text)}}
1752
                                </td>
1752
                                </td>
1753
                                <td><font color="red">{{:value}}</font></td>
1753
                                <td><font color="red">{{:value}}</font></td>
1754
                                <td class="text-capitalize">
1754
                                <td class="text-capitalize">
1755
                                    {{if type == 'open'}} LABEL_OPEN {{/if}}
1755
                                    {{if type == 'open'}} LABEL_OPEN {{/if}}
1756
                                    {{if type == 'simple'}} Simple {{/if}}
1756
                                    {{if type == 'simple'}} Simple {{/if}}
Línea 1766... Línea 1766...
1766
                            </tr>
1766
                            </tr>
1767
                            {{for options}}
1767
                            {{for options}}
1768
                            <tr class="tr-option">
1768
                            <tr class="tr-option">
1769
                                <td class="text-left">---LABEL_OPTION</td>
1769
                                <td class="text-left">---LABEL_OPTION</td>
1770
                                <td class="text-left">
1770
                                <td class="text-left">
1771
                                    {{~removeTags(text)}}
1771
                                    {{:~removeTags(text)}}
1772
                                </td>
1772
                                </td>
1773
                                <td>
1773
                                <td>
Línea 1774... Línea 1774...
1774
 
1774
 
1775
                                    {{if ~getType( slug_section, slug_question) == 'multiple' || ~getType( slug_section, slug_question) == 'rating-open'  }}
1775
                                    {{if ~getType( slug_section, slug_question) == 'multiple' || ~getType( slug_section, slug_question) == 'rating-open'  }}