fixed checkbox behaviour in widgets page... @psychobunny, did I do this right?

v1.18.x
Julian Lam 10 years ago
parent aab726bac4
commit 835750f36f

@ -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);
}

Loading…
Cancel
Save