- further cleaned up the toggle action
- there's no way to remove the redraws because then the jquery isn't being fired properly
This commit is contained in:
Daniël Klabbers 2019-01-25 05:37:45 +01:00
parent 2d714a06b5
commit 2dced2e6c8
5 changed files with 131491 additions and 59 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -77,7 +77,7 @@ export default class EditUserModal extends Modal {
<label>{app.translator.trans('core.forum.edit_user.password_heading')}</label> <label>{app.translator.trans('core.forum.edit_user.password_heading')}</label>
<div> <div>
<label className="checkbox"> <label className="checkbox">
<input type="checkbox" value={this.setPassword()} onchange={e => { <input type="checkbox" onchange={e => {
this.setPassword(e.target.checked); this.setPassword(e.target.checked);
m.redraw(true); m.redraw(true);
if (e.target.checked) this.$('[name=password]').select(); if (e.target.checked) this.$('[name=password]').select();