Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1157 Rev 1161
Línea 546... Línea 546...
546
            value: '',
546
            value: '',
547
            text: 'LABEL_SELECT'
547
            text: 'LABEL_SELECT'
548
        }));
548
        }));
549
        $.getJSON("/settings/behaviors", function(data) {
549
        $.getJSON("/settings/behaviors", function(data) {
550
            $.each(data.data, function(i, item) {
550
            $.each(data.data, function(i, item) {
551
                if (filterItemById(item.uuid).length <= 0) {
551
                if (filterItemById(item.uuid)) {
552
                    $('#select-conduct').append($('<option>', {
552
                    $('#select-conduct').append($('<option>', {
553
                        value: item.uuid,
553
                        value: item.uuid,
554
                        text: item.description
554
                        text: item.description
555
                    }));
555
                    }));
556
                }
556
                }
Línea 569... Línea 569...
569
                'description': $('select[name="select-conduct"] option:selected').text()
569
                'description': $('select[name="select-conduct"] option:selected').text()
570
            });
570
            });
571
            renderData(behaviors);
571
            renderData(behaviors);
572
        }
572
        }
573
    });
573
    });
-
 
574
    /**
-
 
575
     * Filter section selected
-
 
576
     */
574
    const filterItemById = (id) => behaviors.filter((item) => item.id == id ? item : false);
577
    const filterItemById = (id) => behaviors.filter((item) => item.id == id ? item : false)[0];
575
});
578
});
Línea 576... Línea 579...
576
 
579
 
577
JS;
580
JS;
578
$this->inlineScript()->captureEnd();
581
$this->inlineScript()->captureEnd();