Skip to content

Commit

Permalink
Publish v5.32.5
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Apr 27, 2019
1 parent a773d5c commit f005c43
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 29 deletions.
3 changes: 2 additions & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
https://github.com/josdejong/jsoneditor


## not yet released, version 5.32.5
## 2019-04-27, version 5.32.5

- Fixed a bug in the JMESPath query wizard which didn't correctly handle
selecting multiple fields.
- Fixed context menu not working when multiple nodes are selected.


## 2019-04-10, version 5.32.4
Expand Down
12 changes: 6 additions & 6 deletions dist/jsoneditor-minimalist.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
* Copyright (c) 2011-2019 Jos de Jong, http://jsoneditoronline.org
*
* @author Jos de Jong, <[email protected]>
* @version 5.32.4
* @date 2019-04-10
* @version 5.32.5
* @date 2019-04-27
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
Expand Down Expand Up @@ -3148,8 +3148,8 @@ return /******/ (function(modules) { // webpackBootstrap
}
});

if (this.editor.options.onCreateMenu) {
items = this.editor.options.onCreateMenu(items, { path : node.getPath() });
if (this.options.onCreateMenu) {
items = this.options.onCreateMenu(items, { path : node.getPath() });
}

var menu = new ContextMenu(items, {close: onClose});
Expand Down Expand Up @@ -15048,14 +15048,14 @@ return /******/ (function(modules) { // webpackBootstrap
}

if (values.length === 1) {
query.value += '.' + selectedValue;
query.value += '.' + values[0];
}
else if (values.length > 1) {
query.value += '.{' +
values.map(function (value) {
var parts = value.split('.');
var last = parts[parts.length - 1];
return last + ': ' + selectedValue;
return last + ': ' + value;
}).join(', ') +
'}';
}
Expand Down
2 changes: 1 addition & 1 deletion dist/jsoneditor-minimalist.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/jsoneditor-minimalist.min.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions dist/jsoneditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
* Copyright (c) 2011-2019 Jos de Jong, http://jsoneditoronline.org
*
* @author Jos de Jong, <[email protected]>
* @version 5.32.4
* @date 2019-04-10
* @version 5.32.5
* @date 2019-04-27
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
Expand Down Expand Up @@ -31790,8 +31790,8 @@ return /******/ (function(modules) { // webpackBootstrap
}
});

if (this.editor.options.onCreateMenu) {
items = this.editor.options.onCreateMenu(items, { path : node.getPath() });
if (this.options.onCreateMenu) {
items = this.options.onCreateMenu(items, { path : node.getPath() });
}

var menu = new ContextMenu(items, {close: onClose});
Expand Down Expand Up @@ -43690,14 +43690,14 @@ return /******/ (function(modules) { // webpackBootstrap
}

if (values.length === 1) {
query.value += '.' + selectedValue;
query.value += '.' + values[0];
}
else if (values.length > 1) {
query.value += '.{' +
values.map(function (value) {
var parts = value.split('.');
var last = parts[parts.length - 1];
return last + ': ' + selectedValue;
return last + ': ' + value;
}).join(', ') +
'}';
}
Expand Down
2 changes: 1 addition & 1 deletion dist/jsoneditor.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/jsoneditor.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsoneditor",
"version": "5.32.4",
"version": "5.32.5",
"main": "./index",
"description": "A web-based tool to view, edit, format, and validate JSON",
"tags": [
Expand Down
4 changes: 2 additions & 2 deletions src/js/treemode.js
Original file line number Diff line number Diff line change
Expand Up @@ -1685,8 +1685,8 @@ treemode.showContextMenu = function (anchor, onClose) {
}
});

if (this.editor.options.onCreateMenu) {
items = this.editor.options.onCreateMenu(items, { path : node.getPath() });
if (this.options.onCreateMenu) {
items = this.options.onCreateMenu(items, { path : node.getPath() });
}

var menu = new ContextMenu(items, {close: onClose});
Expand Down

0 comments on commit f005c43

Please sign in to comment.