unepwcmc/SAPI

View on GitHub
app/views/admin/taxon_concept_references/new.js.erb

Summary

Maintainability
Test Coverage
var form = $("<%= escape_javascript(render('form')) %>");

$("#new-taxon_concept_reference-label").text("<%= 
   if @taxon_concept_reference.new_record?
    "Add new"
   else
     "Edit"
   end %> Taxon Concept Reference");

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