From 35fe8d1df3d492150b3a4c217bc2f3f36aea54b6 Mon Sep 17 00:00:00 2001 From: Jens Kuebler Date: Mon, 20 Feb 2017 23:24:33 +0100 Subject: [PATCH] F: #187 Add missing fields --- src/js/oseam-models-gauge.js | 3 ++- src/js/oseam-views-gaugedialog.js | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/js/oseam-models-gauge.js b/src/js/oseam-models-gauge.js index 3e360e8..4f6dff0 100644 --- a/src/js/oseam-models-gauge.js +++ b/src/js/oseam-models-gauge.js @@ -17,7 +17,8 @@ OSeaM.models.Gauge = Backbone.Model.extend({ name : '', gaugeType : '', latitude: '', - longitude: '' + longitude: '', + waterlevel: '' }, url: function() { diff --git a/src/js/oseam-views-gaugedialog.js b/src/js/oseam-views-gaugedialog.js index 99b5844..fa40a90 100644 --- a/src/js/oseam-views-gaugedialog.js +++ b/src/js/oseam-views-gaugedialog.js @@ -51,5 +51,10 @@ OSeaM.views.GaugeDialog = OSeaM.View.extend({ // this.wizard.remove(); this.el.remove(); this.undelegateEvents(); + }, + modify: function(e) { + attribute[e.currentTarget.name] = e.currentTarget.value; + this.model.set(attribute); } + }); \ No newline at end of file