CS-13861: Fix 'isChecked: false' not working on IE

This commit is contained in:
Brian Federle 2012-05-17 12:34:33 -07:00
parent 05964ea465
commit cab83385b4
1 changed files with 5 additions and 0 deletions

View File

@ -254,6 +254,11 @@
$input = $('<input>').attr({ name: key, type: 'checkbox' }).appendTo($value);
if (field.isChecked) {
$input.attr('checked', 'checked');
} else {
// This is mainly for IE compatibility
setTimeout(function() {
$input.attr('checked', false);
}, 100);
}
}
} else if (field.dynamic) {