mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 16:30:34 +01:00
fixed checkbox behaviour in widgets page... @psychobunny, did I do this right?
This commit is contained in:
@@ -177,8 +177,8 @@ define('admin/extend/widgets', function() {
|
||||
var input = $(this),
|
||||
value = data[input.attr('name')];
|
||||
|
||||
if (this.type === 'checkbox') {
|
||||
input.attr('checked', !!value);
|
||||
if (input.attr('type') === 'checkbox') {
|
||||
input.prop('checked', !!value).trigger('change');
|
||||
} else {
|
||||
input.val(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user