Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1170 Rev 1171
Línea 472... Línea 472...
472
    });
472
    });
473
    CKEDITOR.replace('functions');
473
    CKEDITOR.replace('functions');
474
    CKEDITOR.replace('objectives');
474
    CKEDITOR.replace('objectives');
Línea 475... Línea 475...
475
 
475
 
476
    const setCompetencySelect = () => {
-
 
477
        $.each(competencies, function(i, item) {
-
 
478
            if (filterItemById(item.competency_id).length <= 0) {
-
 
479
                var type = filterTypeById(item.competency_type_id);
-
 
480
                $('#select-competency').append($('<option>', {
-
 
481
                    value: item.competency_id,
-
 
482
                    text: `${type.name} ${item.name}`
-
 
483
                }));
-
 
484
            }
476
    const setCompetencySelect = () => {
485
        });
477
      
486
    }
-
 
487
    const filterItemById = (id) => competencies_selected.filter((item) => item.competency_id == id ? item : false)[0];
-
 
-
 
478
    }
488
    const filterTypeById = (id) => competencies_type.filter((item) => item.competency_type_id == id ? item : false)[0];
479
 
Línea 489... Línea 480...
489
});
480
});
490
 
481
 
491
JS;
482
JS;