Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
fix: checkbox checked status opposite
Browse files Browse the repository at this point in the history
  • Loading branch information
libo committed Feb 24, 2020
1 parent fbfcbae commit 6690387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/function/checkbox.html
Original file line number Diff line number Diff line change
@@ -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 -}}

0 comments on commit 6690387

Please sign in to comment.