Skip to content

Commit

Permalink
Fix english handlebar
Browse files Browse the repository at this point in the history
  • Loading branch information
cleanerx committed Jun 24, 2015
1 parent 8d06ea3 commit d5011af
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/js/oseam-views-gauges.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
// -------------------------------------------------------------------------------------------------

OSeaM.views.Gauges = OSeaM.View.extend({
events: {
'click .oseam-add' : 'addNewGauge',
},
initialize: function() {
this.listenTo(this.collection, 'reset', this.refreshGauges);
this.render();
Expand All @@ -26,6 +29,15 @@ OSeaM.views.Gauges = OSeaM.View.extend({
this.initOpenLayers();
return this;
},
addNewGauge: function(evt) {
var gauge = new OSeaM.models.Gauge();
view = new OSeaM.views.GaugeDialog({
el: this.$el,
model : vessel,
collection : this.collection
});
view.render().modal('show');
},
initOpenLayers: function() {
var self = this;

Expand Down
2 changes: 2 additions & 0 deletions src/js/templates/gauges-de.handlebars
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<div class="oseam-map-tracks"></div>

<button class="btn oseam-add"><i class="icon-plus-sign"></i> Pegel hinzufügen ...</button>

<div id="detail">
<table class="table table-condensed table-striped table-hover">
<thead>
Expand Down
1 change: 1 addition & 0 deletions src/js/templates/gauges-en.handlebars
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<div class="oseam-map-tracks"></div>

<button class="btn oseam-add"><i class="icon-plus-sign"></i> Add new gauge ...</button>
<div id="detail">
<table class="table table-condensed table-striped table-hover">
<thead>
Expand Down

0 comments on commit d5011af

Please sign in to comment.