From db3f59290d1ee36e14464c30ce64c2d1ec550e8e Mon Sep 17 00:00:00 2001 From: LouisGac Date: Thu, 3 Mar 2016 19:05:54 +0100 Subject: [PATCH] Fixed issue #10621: Empty label in "array NUMBER", checkbox case --- templates/default/scripts/template.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/templates/default/scripts/template.js b/templates/default/scripts/template.js index 5e61b3533be..93bee3c120a 100644 --- a/templates/default/scripts/template.js +++ b/templates/default/scripts/template.js @@ -81,11 +81,17 @@ $(document).ready(function(){ { $('.no-more-tables').find('td').each(function(){ $that = $(this); - //$content = ''+$that.data('title')+''; $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); + } + }); } }