unepwcmc/SAPI

View on GitHub
app/views/admin/taxon_concepts/new_hybrid.js.erb

Summary

Maintainability
Test Coverage
var form = $("<%= escape_javascript(render('hybrid_form')) %>");
form.find('.tags').select2();

$('#admin-new-taxon_concept_hybrid-form').html(form);
$('#new-taxon_concept_hybrid').modal('show');
window.adminEditor.initSelect2Inputs();