Skip to content

Commit 5bd4779

Browse files
committed
Bump version number to 0.7.2
1 parent 4d0885a commit 5bd4779

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "json-editor",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"authors": [
55
"Jeremy Dorn <[email protected]>"
66
],

dist/jsoneditor.js

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/*! JSON Editor v0.7.1 - JSON Schema -> HTML Editor
1+
/*! JSON Editor v0.7.2 - JSON Schema -> HTML Editor
22
* By Jeremy Dorn - https://github.com/jdorn/json-editor/
33
* Released under the MIT license
44
*
5-
* Date: 2014-07-24
5+
* Date: 2014-07-28
66
*/
77

88
/**
@@ -1546,6 +1546,8 @@ JSONEditor.AbstractEditor = Class.extend({
15461546
vars = $extend(this.getWatchedFieldValues(),{
15471547
key: this.key,
15481548
i: this.key,
1549+
i0: (this.key*1),
1550+
i1: (this.key*1+1),
15491551
title: this.getTitle()
15501552
});
15511553
var header_text = this.header_template(vars);
@@ -2284,7 +2286,7 @@ JSONEditor.defaults.editors.string = JSONEditor.AbstractEditor.extend({
22842286

22852287
JSONEditor.defaults.editors.number = JSONEditor.defaults.editors.string.extend({
22862288
sanitize: function(value) {
2287-
return (value+"").replace(/[^0-9\.\-]/g,'');
2289+
return (value+"").replace(/[^0-9\.\-eE]/g,'');
22882290
},
22892291
getNumColumns: function() {
22902292
return 2;
@@ -3307,7 +3309,7 @@ JSONEditor.defaults.editors.array = JSONEditor.AbstractEditor.extend({
33073309
var item_info = this.getItemInfo(i);
33083310
var schema = this.getItemSchema(i);
33093311
schema = this.jsoneditor.expandRefs(schema);
3310-
schema.title = item_info.title+' '+i;
3312+
schema.title = item_info.title+' '+(i+1);
33113313

33123314
var editor = this.jsoneditor.getEditorClass(schema);
33133315

@@ -3601,7 +3603,8 @@ JSONEditor.defaults.editors.array = JSONEditor.AbstractEditor.extend({
36013603
// If the one we're deleting is the active tab
36023604
if(self.rows[j].tab === self.active_tab) {
36033605
// Make the next tab active if there is one
3604-
if(self.rows[j+1]) new_active_tab = self.rows[j+1].tab;
3606+
// Note: the next tab is going to be the current tab after deletion
3607+
if(self.rows[j+1]) new_active_tab = self.rows[j].tab;
36053608
// Otherwise, make the previous tab active if there is one
36063609
else if(j) new_active_tab = self.rows[j-1].tab;
36073610
}

dist/jsoneditor.min.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/intro.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/*! JSON Editor v0.7.1 - JSON Schema -> HTML Editor
1+
/*! JSON Editor v0.7.2 - JSON Schema -> HTML Editor
22
* By Jeremy Dorn - https://github.com/jdorn/json-editor/
33
* Released under the MIT license
44
*
5-
* Date: 2014-07-24
5+
* Date: 2014-07-28
66
*/
77

88
/**

0 commit comments

Comments
 (0)