Skip to content

Commit

Permalink
fixed a bug caused by name with a space
Browse files Browse the repository at this point in the history
  • Loading branch information
titima15 committed Dec 6, 2024
1 parent 075cb3d commit 13c2294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/source/legacy/CXGN/BreedersToolbox/Accessions.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ jQuery(document).ready(function ($) {
var population_id = populations[i].stock_id;
var accessions = populations[i].members;
var member_type = populations[i].member_type
var table_id = name+i+"_pop_table";
var table_id = population_id+i+"_pop_table";

var section_html = '<div class="row"><div class="panel panel-default"><div class="panel-heading" >';
section_html += '<div class="panel-title" name="populations_members_table_toggle" data-table_id="#'+table_id+'" data-population_id="'+population_id+'" data-population_name="'+name+'"><div class="row"><div class="col-sm-6" data-toggle="collapse" data-parent="#accordion" data-target="#collapse'+i+'"><a href="#'+table_id+'" class="accordion-toggle">'+name+'</a></div><div class="col-sm-3"><a href="/stock/'+population_id+'/view"><small>[Go To Population Page]</small></a></div><div class="col-sm-3"><a name="manage_populations_add_members" data-population_id="'+population_id+'" data-population_name="'+name+'" data-member_type="'+member_type+'"><small>[Add Members To Population]</small></a><br/><a name="manage_populations_delete_population" data-population_id="'+population_id+'" data-population_name="'+name+'"><small>[Delete Population]</small></a></div></div></div></div>';
Expand Down

0 comments on commit 13c2294

Please sign in to comment.