Skip to content

Commit

Permalink
Bump version number to 0.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jdorn committed Jul 28, 2014
1 parent 4d0885a commit 5bd4779
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "json-editor",
"version": "0.7.1",
"version": "0.7.2",
"authors": [
"Jeremy Dorn <[email protected]>"
],
Expand Down
13 changes: 8 additions & 5 deletions dist/jsoneditor.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*! JSON Editor v0.7.1 - JSON Schema -> HTML Editor
/*! JSON Editor v0.7.2 - JSON Schema -> HTML Editor
* By Jeremy Dorn - https://github.com/jdorn/json-editor/
* Released under the MIT license
*
* Date: 2014-07-24
* Date: 2014-07-28
*/

/**
Expand Down Expand Up @@ -1546,6 +1546,8 @@ JSONEditor.AbstractEditor = Class.extend({
vars = $extend(this.getWatchedFieldValues(),{
key: this.key,
i: this.key,
i0: (this.key*1),
i1: (this.key*1+1),
title: this.getTitle()
});
var header_text = this.header_template(vars);
Expand Down Expand Up @@ -2284,7 +2286,7 @@ JSONEditor.defaults.editors.string = JSONEditor.AbstractEditor.extend({

JSONEditor.defaults.editors.number = JSONEditor.defaults.editors.string.extend({
sanitize: function(value) {
return (value+"").replace(/[^0-9\.\-]/g,'');
return (value+"").replace(/[^0-9\.\-eE]/g,'');
},
getNumColumns: function() {
return 2;
Expand Down Expand Up @@ -3307,7 +3309,7 @@ JSONEditor.defaults.editors.array = JSONEditor.AbstractEditor.extend({
var item_info = this.getItemInfo(i);
var schema = this.getItemSchema(i);
schema = this.jsoneditor.expandRefs(schema);
schema.title = item_info.title+' '+i;
schema.title = item_info.title+' '+(i+1);

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

Expand Down Expand Up @@ -3601,7 +3603,8 @@ JSONEditor.defaults.editors.array = JSONEditor.AbstractEditor.extend({
// If the one we're deleting is the active tab
if(self.rows[j].tab === self.active_tab) {
// Make the next tab active if there is one
if(self.rows[j+1]) new_active_tab = self.rows[j+1].tab;
// Note: the next tab is going to be the current tab after deletion
if(self.rows[j+1]) new_active_tab = self.rows[j].tab;
// Otherwise, make the previous tab active if there is one
else if(j) new_active_tab = self.rows[j-1].tab;
}
Expand Down
8 changes: 4 additions & 4 deletions dist/jsoneditor.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/intro.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*! JSON Editor v0.7.1 - JSON Schema -> HTML Editor
/*! JSON Editor v0.7.2 - JSON Schema -> HTML Editor
* By Jeremy Dorn - https://github.com/jdorn/json-editor/
* Released under the MIT license
*
* Date: 2014-07-24
* Date: 2014-07-28
*/

/**
Expand Down

0 comments on commit 5bd4779

Please sign in to comment.