Skip to content

Commit

Permalink
Updated fb integration and template path
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxHansson committed Oct 28, 2013
1 parent 2b454ff commit 1361879
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/scripts/views/reports.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ define([
'underscore',
'backbone',
'templates',
'models/report'
], function ($, _, Backbone, JST, ReportModel) {
'models/report',
'models/user'
], function ($, _, Backbone, JST, ReportModel, UserModel) {

'use strict';

Expand All @@ -23,7 +24,7 @@ define([

View.SingleReport = Backbone.View.extend({
el: '#main',
template: JST['app/scripts/templates/singleReport.ejs'],
template: JST['app/scripts/templates/report.ejs'],
render: function() {
this.$el.html(this.template({'report': this.model.toJSON()}));
return this;
Expand Down Expand Up @@ -59,7 +60,7 @@ define([
'types_id': $('#types_id').val(),
'lat': $('#lat').val(),
'lng': $('#lng').val(),
'fb_id': $('#fb_id').val()
'fb_id': UserModel.get('fb_id')
});

newReport.save();
Expand Down

0 comments on commit 1361879

Please sign in to comment.