mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 01:10:31 +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),
|
var input = $(this),
|
||||||
value = data[input.attr('name')];
|
value = data[input.attr('name')];
|
||||||
|
|
||||||
if (this.type === 'checkbox') {
|
if (input.attr('type') === 'checkbox') {
|
||||||
input.attr('checked', !!value);
|
input.prop('checked', !!value).trigger('change');
|
||||||
} else {
|
} else {
|
||||||
input.val(value);
|
input.val(value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user