浏览代码

Update the selected conditions of radio or checkbox buttons.

zhixin 11 年之前
父节点
当前提交
45f9d0bb66
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -897,7 +897,7 @@
                             sprintf(' name="%s"', that.options.selectItemName) +
                             sprintf(' type="%s"', type) +
                             sprintf(' value="%s"', item[that.options.idField]) +
-                            sprintf(' checked="%s"', +value === 1 ||
+                            sprintf(' checked="%s"', value === true ||
                                 (value && value.checked) ? 'checked' : undefined) +
                             sprintf(' disabled="%s"', !that.options.columns[j].checkboxEnabled ||
                                 (value && value.disabled) ? 'disabled' : undefined) +