Fix for the checkbox field in the Inspector

This commit is contained in:
alekseybobkov 2014-09-04 19:03:33 -07:00
parent f7dfd35d08
commit 904b855778
1 changed files with 6 additions and 1 deletions

View File

@ -550,9 +550,14 @@
}
InspectorEditorCheckbox.prototype.renderEditor = function() {
var isChecked = this.inspector.readProperty(this.fieldDef.property)
if (isChecked == '0' || isChecked == 'false')
isChecked = false
var data = {
id: this.editorId,
checked: this.inspector.readProperty(this.fieldDef.property) ? 'checked' : null,
checked: isChecked ? 'checked' : null,
cbId: this.editorId + '-cb',
title: this.fieldDef.title
}