diff --git a/app.js b/app.js index 5dad2d5..6ba6756 100644 --- a/app.js +++ b/app.js @@ -28,6 +28,11 @@ var app = new Vue({ }, methods: { submit: function() { + for (var key in this.d) { + if (this.d.hasOwnProperty(key) && typeof(this.d[key]) === "boolean"){ + this.d[key] = this.d[key].toString() + } + } this.data.push(this.d); store('data', this.data); this.d.name = this.s.name; diff --git a/fields.json b/fields.json index 6c25345..dede4f8 100644 --- a/fields.json +++ b/fields.json @@ -2,7 +2,6 @@ "match": "", "team": "", "color": "blue", - "foul": false, "a_start_pos": "", "a_movement": "", "a_switch_cubes": 0, @@ -27,4 +26,4 @@ "human": "mid", "driver": "mid", "comments": "" -} +} \ No newline at end of file diff --git a/index.html b/index.html index a1b128b..38395e2 100644 --- a/index.html +++ b/index.html @@ -68,7 +68,6 @@