Skip to content

Commit

Permalink
Fixed issue #16373 : Bootstrap Buttons not aligned when filtered
Browse files Browse the repository at this point in the history
Dev: id to the wrapper, the id is hidden
  • Loading branch information
Shnoulle committed Aug 24, 2020
1 parent ef553a4 commit 81390e2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
Expand Up @@ -9,5 +9,4 @@ function doBootstrapRadio(){
$("#answer" + name + "othertext").val('').trigger("change");
}
});

}
Expand Up @@ -14,8 +14,8 @@
{% set max_buttons_row = (question_template_attribute.max_buttons_row == 'default' or question_template_attribute.max_buttons_row is empty) ? 'col-sm-2' : question_template_attribute.max_buttons_row %}

<!-- answer_row -->
<div class="bootstrap-buttons-div col-xs-12 {{ max_buttons_row }}">
<div id="javatbd{{ myfname }}" class="button-item btn btn-primary {{ button_size_class }} {% if checkedState!='' %} active {% endif %} col-xs-12 col-sm-12">
<div id="javatbd{{ myfname }}" class="bootstrap-buttons-div col-xs-12 {{ max_buttons_row }}">
<div class="button-item btn btn-primary {{ button_size_class }} {% if checkedState!='' %} active {% endif %} col-xs-12 col-sm-12">
<input
class="bootstrap-radio sr-only"
type="radio"
Expand Down
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Default configuration for the multiplechoice question template.
-->
Expand All @@ -14,7 +14,7 @@
<authorUrl>http://www.limesurvey.org</authorUrl>
<copyright>Copyright (C) 2005 - 2018 LimeSurvey Gmbh, Inc. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later</license>
<version>1.0</version>
<version>1.1</version>
<apiVersion>1</apiVersion>
<description>New implementation of the Bootstrap buttons question theme</description>
</metadata>
Expand Down
Expand Up @@ -20,8 +20,8 @@
#}

<!-- answer_row -->
<div class="bootstrap-buttons-div col-xs-12 {{ max_buttons_row }}">
<div id='javatbd{{ myfname }}' class="button-item btn btn-primary {{ button_size_class }} {% if checkedState!='' %} active {% endif %} col-xs-12 col-sm-12">
<div id='javatbd{{ myfname }}' class="bootstrap-buttons-div col-xs-12 {{ max_buttons_row }}">
<div class="button-item btn btn-primary {{ button_size_class }} {% if checkedState!='' %} active {% endif %} col-xs-12 col-sm-12">
<input
type="checkbox"
name="{{ myfname }}"
Expand Down

0 comments on commit 81390e2

Please sign in to comment.