Skip to content

Commit

Permalink
Fixed issue #10621: Empty label in "array NUMBER", checkbox case
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Mar 3, 2016
1 parent adc1ad5 commit db3f592
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions templates/default/scripts/template.js
Expand Up @@ -81,11 +81,17 @@ $(document).ready(function(){
{
$('.no-more-tables').find('td').each(function(){
$that = $(this);
//$content = '<td>'+$that.data('title')+'</td>';
$label = $that.data('title');
$input = $that.find('input');
//$that.empty().prepend($content);
$that.find('label').prepend($label);
if($input.is(':checkbox'))
{
$that.find('label').removeClass('hide');
}
else
{
$that.find('label').prepend($label);
}

});
}
}
Expand Down

1 comment on commit db3f592

@Shnoulle
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

I try with updating class: remove hide , something like : sr-only visible-xs-inline . And fix whole label inside array to have same html (except class) than list radio/list text/list checkbox.

Make a pull request (next week ....)

Please sign in to comment.