Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1139 Rev 1154
Línea 540... Línea 540...
540
    }
540
    }
541
    /**
541
    /**
542
     * get alls Behavios
542
     * get alls Behavios
543
     */
543
     */
544
    const getAllBehaviors = () => {
544
    const getAllBehaviors = () => {
-
 
545
        $('#select-conduct').children().remove();
-
 
546
        $('#select-conduct').append($('<option>', {
-
 
547
            value: '',
-
 
548
            text: 'LABEL_SELECT'
-
 
549
        }));
545
        $.getJSON("/settings/behaviors", function(data) {
550
        $.getJSON("/settings/behaviors", function(data) {
546
            $('#select-conduct').children().remove();
-
 
547
            $('#select-conduct').append($('<option>', {
-
 
548
                value: '',
-
 
549
                text: 'LABEL_SELECT'
-
 
550
            }));
-
 
551
            $.each(data.data, function(i, item) {
551
            $.each(data.data, function(i, item) {
552
                if (filterItemById(item.uuid).length <= 0) {
552
                if (filterItemById(item.uuid).length <= 0) {
553
                    $('#select-conduct').append($('<option>', {
553
                    $('#select-conduct').append($('<option>', {
554
                        value: item.uuid,
554
                        value: item.uuid,
555
                        text: item.description
555
                        text: item.description