瀏覽代碼

Add ability to use custom checkboxes without labels styled

Denis K 9 年之前
父節點
當前提交
4c218bf20f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      jet/static/jet/js/main.js

+ 1 - 1
jet/static/jet/js/main.js

@@ -46,7 +46,7 @@
 
             var addLabelToCheckboxes = function() {
                 var $containers = $('.action-checkbox, .action-checkbox-column').add('.tabular.inline-related .form-row');
-                var $checkboxes = $containers.find('input[type="checkbox"]');
+                var $checkboxes = $containers.find('input[type="checkbox"]').add('.checkbox-without-label');
 
                 $checkboxes.each(function() {
                     addLabelToCheckbox($(this));