Skip to content

Commit

Permalink
Merge pull request #57 from libris/bugfix/BIBSTAT-14
Browse files Browse the repository at this point in the history
Bugfix/bibstat 14
  • Loading branch information
praktwerk authored Oct 20, 2020
2 parents 08a217c + e873752 commit cf871d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion libstat/templates/libstat/survey.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ <h2 class="section-title">{{ section.title }}</h2>
{{ form|access:variable_key }}
{% endwith %}
<div class="input-group-btn">
<!-- Skip dropdown for inputs in first group of first section. -->
<!-- Skip dropdown for inputs in first group of first section. -->
{% comment "This functionality is not in use right now" %}
{% if not forloop.parentloop.parentloop.parentloop.first or not forloop.parentloop.parentloop.first %}
{% with variable=form|access:cell.variable_key %}
<button type="button" class="btn btn-default btn-dropdown dropdown-toggle" data-toggle="dropdown" {% if form.is_read_only %} disabled{% endif %}>
Expand All @@ -176,6 +177,7 @@ <h2 class="section-title">{{ section.title }}</h2>
</ul>
{% endwith %}
{% endif %}
{% endcomment %}
{% if cell.explanation %}
<a class="btn btn-default btn-help"
href="#"
Expand Down
2 changes: 1 addition & 1 deletion static/js/app/survey/sum.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ define(['jquery', 'bootbox', 'survey.cell'], function($, bootbox, cell) {
// User clicks OK
// Clear subfields and put focus on sum field
$.each(childels, function (index, child) {
child.val("");
child.val("-");
});
$(parent).focus()
} else {
Expand Down

0 comments on commit cf871d8

Please sign in to comment.