mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 17:56:16 +01:00
closes #3522
This commit is contained in:
@@ -46,7 +46,9 @@ define('admin/settings', ['uploader', 'sounds'], function(uploader, sounds) {
|
||||
break;
|
||||
|
||||
case 'checkbox':
|
||||
field.prop('checked', parseInt(app.config[key], 10) === 1);
|
||||
var checked = parseInt(app.config[key], 10) === 1;
|
||||
field.prop('checked', checked);
|
||||
field.parents('.mdl-switch').toggleClass('is-checked', checked);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user