ソースを参照

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) +