소스 검색

Checkboxes without labels are a pain to use... Now text is clickable as well.

Alexandros Vellis 19 년 전
부모
커밋
ca596d3c27
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      templates/default/folder_manip.tpl

+ 2 - 1
templates/default/folder_manip.tpl

@@ -192,7 +192,8 @@ extract($t);
       </select>
 */
             foreach ($subbox_option_list as $folder) {
-                echo '<input type="checkbox" name="folder_names[]" value="'.$folder['Value'].'" />'.$folder['Display'].'<br />';
+                echo '<input type="checkbox" name="folder_names[]" id="sub_'.$folder['Value'].'" value="'.$folder['Value'].'" /> '.
+                    '<label for="sub_'.$folder['Value'].'">'.$folder['Display'].'</label><br />';
             }
             ?>
       </div>