unepwcmc/SAPI

View on GitHub
app/views/admin/taxon_commons/create.js.erb

Summary

Maintainability
Test Coverage
$('#taxon-commons-list').html("<%= escape_javascript(render('list')) %>");
var saveAndReopen = window.adminEditor.saveAndReopen;
window.adminEditor.initModals();
window.adminEditor.alertSuccess("Operation successful");
if (saveAndReopen){
  window.adminEditor.clearModalForm($('#new-common_name.modal'));
  $('#new-common_name.modal').modal('show');
} else {
  $('#new-common_name.modal').modal('hide');
}