Merge pull request #97 from cowka/fix/todo-checked

fix: checkbox checked status opposite
This commit is contained in:
Dillon 2020-02-25 14:52:01 +08:00 committed by GitHub
commit 411b100edd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,9 @@
{{- /* Checkbox unchecked */ -}}
{{- $REin := `<input disabled="" type="checkbox">` -}}
{{- $REout := `<i class="far fa-check-square fa-fw"></i>` -}}
{{- $REout := `<i class="far fa-square fa-fw"></i>` -}}
{{- $content := replaceRE $REin $REout . -}}
{{- /* Checkbox checked */ -}}
{{- $REin = `<input checked="" disabled="" type="checkbox">` -}}
{{- $REout = `<i class="far fa-square fa-fw"></i>` -}}
{{- $REout = `<i class="far fa-check-square fa-fw"></i>` -}}
{{- return replaceRE $REin $REout $content -}}