Improve styling and naming of the answer copy button

This commit is contained in:
Raphael Michel
2016-11-10 22:37:46 +01:00
parent 79c65496b9
commit 8e8aab43d3
3 changed files with 6 additions and 3 deletions

View File

@@ -40,11 +40,11 @@ $(function () {
$(".js-copy-answers").click(function (e) {
e.preventDefault();
var idx = $(this).data('id');
bind_groups(idx);
copy_answers(idx);
});
});
function bind_groups(idx) {
function copy_answers(idx) {
var elements = $('*[data-idx="'+idx+'"] input, *[data-idx="'+idx+'"] select, *[data-idx="'+idx+'"] textarea');
var firstAnswers = $('*[data-idx="0"] input, *[data-idx="0"] select, *[data-idx="0"] textarea');
elements.each(function(index){

View File

@@ -104,6 +104,9 @@ section.front-page {
color: white;
}
}
#questions_group .panel-title a {
line-height: 22px;
}
@media (max-width: $screen-sm-max) {
.page-header h1 small {
display: block;