Browse Source

Fix sliding checkbox in settings

pull/21/head
Chris 7 years ago
parent
commit
a79d47f161
  1. 2
      app/Setting.php

2
app/Setting.php

@ -97,8 +97,8 @@ class Setting extends Model
if(isset($this->value) && (bool)$this->value === true) $checked = true;
$set_checked = ($checked) ? ' checked="checked"' : '';
$value = '
<label class="switch">
<input type="hidden" name="value" value="0" />
<label class="switch">
<input type="checkbox" name="value" value="1"'.$set_checked.' />
<span class="slider round"></span>
</label>';

Loading…
Cancel
Save