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

This commit is contained in:
Julian Lam
2015-07-11 21:52:18 -04:00
parent aab726bac4
commit 835750f36f

View File

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