mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 05:02:50 +08:00
removes sample group/type link in new sample form [fixes SCI-809]
This commit is contained in:
parent
c8631077df
commit
efe41817f2
2 changed files with 1 additions and 21 deletions
|
@ -756,12 +756,6 @@ function createSampleTypeSelect(data, selected) {
|
|||
var $selectType = $('<select></select>')
|
||||
.attr('name', 'sample_type_id').addClass('show-tick');
|
||||
|
||||
var sampleTypesLink = $('#samples').attr('data-sample-types-link');
|
||||
|
||||
var $option = $("<option href='" + sampleTypesLink + "'></option>")
|
||||
.attr('value', -2)
|
||||
.text(I18n.t('samples.table.add_sample_type'));
|
||||
$selectType.append($option);
|
||||
$option = $('<option></option>')
|
||||
.attr('value', -1).text(I18n.t('samples.table.no_type'))
|
||||
$selectType.append($option);
|
||||
|
@ -786,11 +780,6 @@ function createSampleGroupSelect(data, selected) {
|
|||
var $selectGroup = $('<select></select>')
|
||||
.attr('name', 'sample_group_id').addClass('show-tick');
|
||||
|
||||
var sampleGroupsLink = $('#samples').attr('data-sample-groups-link');
|
||||
|
||||
var $option = $("<option href='" + sampleGroupsLink + "'></option>")
|
||||
.text(I18n.t('samples.table.add_sample_group'));
|
||||
$selectGroup.append($option);
|
||||
$option = $('<option></option>')
|
||||
.attr('value', -1).text(I18n.t('samples.table.no_group'))
|
||||
.attr('data-icon', 'glyphicon glyphicon-asterisk');
|
||||
|
|
|
@ -128,16 +128,7 @@
|
|||
data-source="<%= @samples_index_link %>"
|
||||
data-num-columns="<%= num_of_columns %>"
|
||||
data-new-sample="<%= new_organization_sample_path(organization_id: @organization) %>"
|
||||
data-create-sample="<%= organization_samples_path(organization_id: @organization) %>"
|
||||
data-sample-types-link="<%= organization_sample_types_path(@organization,
|
||||
project_id: (@project.id if @project),
|
||||
my_module_id: (@my_module.id if @my_module),
|
||||
experiment_id: (@experiment.id if @experiment)) %>"
|
||||
data-sample-groups-link="<%= organization_sample_groups_path(current_organization,
|
||||
project_id: (@project.id if @project),
|
||||
my_module_id: (@my_module.id if @my_module),
|
||||
experiment_id: (@experiment.id if @experiment)) %>"
|
||||
>
|
||||
data-create-sample="<%= organization_samples_path(organization_id: @organization) %>">
|
||||
<thead>
|
||||
<tr>
|
||||
<th id="checkbox"><input name="select_all" value="1" type="checkbox"></th>
|
||||
|
|
Loading…
Reference in a new issue