Skip to content

Commit 5ff167a

Browse files
committed
Version bump.
1 parent 14e8540 commit 5ff167a

File tree

4 files changed

+23
-20
lines changed

4 files changed

+23
-20
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "json-editor",
3-
"version": "0.6.16",
3+
"version": "0.6.17",
44
"authors": [
55
"Jeremy Dorn <[email protected]>"
66
],

dist/jsoneditor.js

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/*! JSON Editor v0.6.16 - JSON Schema -> HTML Editor
1+
/*! JSON Editor v0.6.17 - JSON Schema -> HTML Editor
22
* By Jeremy Dorn - https://github.com/jdorn/json-editor/
33
* Released under the MIT license
44
*
5-
* Date: 2014-06-18
5+
* Date: 2014-06-22
66
*/
77

88
/**
@@ -504,17 +504,18 @@ JSONEditor.Validator = Class.extend({
504504
});
505505
});
506506
},
507-
_getRefs: function(schema,callback) {
507+
_getRefs: function(schema,callback,path,in_definitions) {
508508
var self = this;
509509
var is_root = schema === this.original_schema;
510+
path = path || "#";
510511

511512
var waiting, finished, check_if_finished, called;
512513

513514
// Work on a deep copy of the schema
514515
schema = $extend({},schema);
515516

516517
// First expand out any definition in the root node
517-
if(is_root && schema.definitions) {
518+
if(schema.definitions && (is_root || in_definitions)) {
518519
var defs = schema.definitions;
519520
delete schema.definitions;
520521

@@ -523,7 +524,7 @@ JSONEditor.Validator = Class.extend({
523524
if(finished >= waiting) {
524525
if(called) return;
525526
called = true;
526-
self._getRefs(schema,callback);
527+
self._getRefs(schema,callback,path);
527528
}
528529
};
529530

@@ -535,10 +536,10 @@ JSONEditor.Validator = Class.extend({
535536
$each(defs,function(i,definition) {
536537
// Expand the definition recursively
537538
self._getRefs(definition,function(def_schema) {
538-
self.refs['#/definitions/'+i] = def_schema;
539+
self.refs[path+'/definitions/'+i] = def_schema;
539540
finished++;
540541
check_if_finished(schema);
541-
});
542+
},path+'/definitions/'+i,true);
542543
});
543544
}
544545
else {
@@ -585,7 +586,7 @@ JSONEditor.Validator = Class.extend({
585586
$each(list,function(i,v) {
586587
v();
587588
});
588-
});
589+
},path);
589590
return;
590591
}
591592

@@ -633,7 +634,7 @@ JSONEditor.Validator = Class.extend({
633634

634635
finished++;
635636
check_if_finished(schema);
636-
});
637+
},path+'/'+key+'/'+j);
637638
}
638639
});
639640
}
@@ -644,7 +645,7 @@ JSONEditor.Validator = Class.extend({
644645

645646
finished++;
646647
check_if_finished(schema);
647-
});
648+
},path+'/'+key);
648649
}
649650
});
650651
}
@@ -3275,7 +3276,7 @@ JSONEditor.defaults.editors.array = JSONEditor.AbstractEditor.extend({
32753276
this._super();
32763277
this.row_holder.style.display = '';
32773278
if(this.tabs_holder) this.tabs_holder.style.display = '';
3278-
this.controls.style.display = '';
3279+
if(!this.collapsed) this.controls.style.display = '';
32793280
this.title_controls.style.display = '';
32803281
this.theme.enableHeader(this.title);
32813282
},
@@ -3689,7 +3690,7 @@ JSONEditor.defaults.editors.array = JSONEditor.AbstractEditor.extend({
36893690
controls_needed = true;
36903691
}
36913692

3692-
if(controls_needed) {
3693+
if(!this.collapsed && controls_needed) {
36933694
this.controls.style.display = '';
36943695
}
36953696
else {
@@ -3826,6 +3827,7 @@ JSONEditor.defaults.editors.array = JSONEditor.AbstractEditor.extend({
38263827
this.toggle_button.addEventListener('click',function() {
38273828
if(self.collapsed) {
38283829
self.collapsed = false;
3830+
if(self.panel) self.panel.style.display = '';
38293831
self.row_holder.style.display = row_holder_display;
38303832
if(self.tabs_holder) self.tabs_holder.style.display = '';
38313833
self.controls.style.display = controls_display;
@@ -3836,6 +3838,7 @@ JSONEditor.defaults.editors.array = JSONEditor.AbstractEditor.extend({
38363838
self.row_holder.style.display = 'none';
38373839
if(self.tabs_holder) self.tabs_holder.style.display = 'none';
38383840
self.controls.style.display = 'none';
3841+
if(self.panel) self.panel.style.display = 'none';
38393842
self.setButtonText(this,'','expand','Expand');
38403843
}
38413844
});

dist/jsoneditor.min.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/intro.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/*! JSON Editor v0.6.16 - JSON Schema -> HTML Editor
1+
/*! JSON Editor v0.6.17 - JSON Schema -> HTML Editor
22
* By Jeremy Dorn - https://github.com/jdorn/json-editor/
33
* Released under the MIT license
44
*
5-
* Date: 2014-06-18
5+
* Date: 2014-06-22
66
*/
77

88
/**

0 commit comments

Comments
 (0)