Skip to content

Commit

Permalink
Merge pull request #197 from cleanerx/master
Browse files Browse the repository at this point in the history
F: #187 Add missing fields
  • Loading branch information
cleanerx authored Feb 20, 2017
2 parents 91e1b70 + 35fe8d1 commit 67c99e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/oseam-models-gauge.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ OSeaM.models.Gauge = Backbone.Model.extend({
name : '',
gaugeType : '',
latitude: '',
longitude: ''
longitude: '',
waterlevel: ''

},
url: function() {
Expand Down
5 changes: 5 additions & 0 deletions src/js/oseam-views-gaugedialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

});

0 comments on commit 67c99e1

Please sign in to comment.