Upgrade jquery.jsoneditor to handle null values

Fixes the editor in dry-runs when working with events that include
`null` values.

https://github.com/cantino/jsoneditor/pull/3
This commit is contained in:
Dominik Sander 2017-09-17 12:10:12 +02:00
parent 985cc8e376
commit ea2a5e3456

View file

@ -544,6 +544,9 @@
bq.append($('<div class="bracers">}</div>'));
node.append(bq);
} else {
if (json === null) {
json = '';
}
elem = this.editable(json.toString(), key, parent, root, 'value').wrap('<span class="val"></span>').parent();
node.append(elem);
node.prepend(this.braceUI(key, parent));