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; if(isset($this->value) && (bool)$this->value === true) $checked = true;
$set_checked = ($checked) ? ' checked="checked"' : ''; $set_checked = ($checked) ? ' checked="checked"' : '';
$value = ' $value = '
<input type="hidden" name="value" value="0" />
<label class="switch"> <label class="switch">
<input type="hidden" name="value" value="0" />
<input type="checkbox" name="value" value="1"'.$set_checked.' /> <input type="checkbox" name="value" value="1"'.$set_checked.' />
<span class="slider round"></span> <span class="slider round"></span>
</label>'; </label>';

Loading…
Cancel
Save