Skip to content

Commit

Permalink
little cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
johnculviner committed Apr 22, 2013
1 parent cb5827c commit a7607ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions demo/SurveyApp.Web/App/viewmodels/foodgroups.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ function (foodGroupApi, foodGroup, typeMetadataHelper, app, router) {
return new function() {
var self = this;

window.thevm = self;

//assigned in activate
self.foodGroups = ko.observableArray();

Expand Down
4 changes: 2 additions & 2 deletions demo/SurveyApp.Web/App/views/surveys/addEditSurveyPage.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@
<td data-bind="text: productTypeDisplay"></td>
<td data-bind="text: specSummary"></td>
<td class="actions">
<button class="btn btn-info" data-bind="click: function () { $root.editTechProduct($data) }">
<button class="btn btn-info" data-bind="click: $root.editTechProduct">
<i class="icon-edit"></i>
</button>
<button class="btn btn-danger" data-bind="click: function () { $root.deleteTechProduct($data) }">
<button class="btn btn-danger" data-bind="click: $root.deleteTechProduct">
<i class="icon-remove-sign"></i>
</button>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<div @location.DataBind(db => db.Text(x => x.FormattedLocation)).Class("uneditable controls")></div>
</div>
<div class="control-group">
@location.LabelFor(x => x.Latitude).Class("control-label")
@location.BootstrapLabelFor(x => x.Latitude)
<div @location.DataBind(db => db.Text(x => x.Latitude)).Class("uneditable controls")></div>
</div>
<div class="control-group">
@location.LabelFor(x => x.Longitude).Class("control-label")
@location.BootstrapLabelFor(x => x.Longitude)
<div @location.DataBind(db => db.Text(x => x.Longitude)).Class("uneditable controls")></div>
</div>
<div data-bind="bingMap: { latitude: Latitude, longitude: Longitude }" style="height: 200px; width: 100%; position: relative;"></div>

0 comments on commit a7607ef

Please sign in to comment.