diff --git a/ui/scripts/ui/dialog.js b/ui/scripts/ui/dialog.js index 4bbaf9c388f..ff6086551f8 100644 --- a/ui/scripts/ui/dialog.js +++ b/ui/scripts/ui/dialog.js @@ -368,11 +368,17 @@ }); } else { - $input = $('').attr({ - name: key, - type: 'checkbox' - }).appendTo($value); - if (field.isChecked) { + $input = $('').attr({ + name: key, + type: 'checkbox' + }).appendTo($value); + var isChecked; + if (typeof (field.isChecked) == 'function') { + isChecked = field.isChecked(); + } else { + isChecked = field.isChecked; + } + if (isChecked) { $input.attr('checked', 'checked'); } else { // This is mainly for IE compatibility