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

Commit d750bb2

Browse files
minor fix
1 parent 965ceb6 commit d750bb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/uadmin/default/admin/widgets/checkbox.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
</div>
3030
{{ end }}
3131
{{ end }}
32-
<div onclick="$(this).find('input').attr('checked') === 'checked' ? $(this).find('input').removeAttr('checked') : $(this).find('input').attr('checked', 'checked');" class="material-switch" style="padding-left:15px;padding-top:5px">
32+
<div {{if not .ReadOnly}}onclick="$(this).find('input').attr('checked') === 'checked' ? $(this).find('input').removeAttr('checked') : $(this).find('input').attr('checked', 'checked');" {{end}} class="material-switch" style="padding-left:15px;padding-top:5px">
3333
<input name="{{ .Name }}" {{ range $k, $v := .Attrs }} {{ attr $k }}="{{ safe $v }}"{{ end }} type="checkbox" {{if .ReadOnly}} readonly {{end}}>
3434
<label class="label-primary"></label>
3535
</div>

0 commit comments

Comments
 (0)