fix: checkbox checked status opposite

This commit is contained in:
libo 2020-02-24 22:28:00 +08:00
parent fbfcbaebca
commit 669038758e

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 -}}