Skip to content

Commit 5bf3134

Browse files
committed
adding comments from @ElDeveloper
1 parent 8574c3a commit 5bf3134

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

qiita_pet/handlers/study_handlers/description_handlers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ def delete_prep_template(self, study, user, callback):
627627
is done
628628
"""
629629
prep_template_id = int(self.get_argument('prep_template_id'))
630-
tab_id = PrepTemplate(prep_template_id).raw_data
630+
prep_id = PrepTemplate(prep_template_id).raw_data
631631

632632
try:
633633
PrepTemplate.delete(prep_template_id)
@@ -637,7 +637,6 @@ def delete_prep_template(self, study, user, callback):
637637
except Exception as e:
638638
msg = ("Couldn't remove prep template: %s" % str(e))
639639
msg_level = "danger"
640-
prep_id = tab_id
641640

642641
callback((msg, msg_level, 'raw_data_tab', prep_id, None))
643642

qiita_pet/templates/study_description_templates/prep_template_panel.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ <h4 class="modal-title" id="myModalLabel">Choose preprocessing parameters</h4>
4141
<div class="panel panel-default">
4242
<div class="panel-heading">
4343
<h4 class="panel-title">
44-
<a data-toggle="collapse" data-parent="#prep-accordion" href="#collapse{{prep_id}}">
44+
<a data-parent="#prep-accordion" href="#collapse{{prep_id}}" style="pointer-events: none; cursor: default;">
4545
{{data_type}} (ID: {{prep_id}})
46-
<button class="close" title="Remove this prep template" type="button" onclick="delete_prep_template('{{data_type}}', {{prep_id}})">&nbsp; ×</button>
46+
<button class="close" title="Remove this prep template" type="button" onclick="delete_prep_template('{{data_type}}', {{prep_id}})">&nbsp; ×</button>
4747
</a>
4848
</h4>
4949
</div>

0 commit comments

Comments
 (0)