-
Notifications
You must be signed in to change notification settings - Fork 2
/
lets-eat.js
47 lines (42 loc) · 1.18 KB
/
lets-eat.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Houston.menu({
'type': 'link',
'use': '/dashboard',
'title': 'Dashboard',
'target': '_parent'
});
Houston.menu({
'type': 'template',
'use': 'AddAccount',
'title': 'New User'
});
Houston.menu({
'type': 'template',
'use': 'UserList',
'title': 'Edit Users'
});
Houston.menu({
'type':'template',
'use':'Foods',
'title':'Foods'
});
Markers.find().observe({
added: function (document) {
updateFromAdmin();
}
});
Router.onAfterAction(function(){
var message = encodeURIComponent("To make sure we can help you quickly, please include the version of Lets Eat you are using, steps to replicate the issue, a description of what you were expecting and a screenshot if relevant.\nThanks!");
var m2 = "https://github.com/jointheleague/lets-eat/issues/new?title=Your%20Lets%20Eat%20Issue&body="+message;
$("a[id='houston-report-bug']").attr('href',m2);
})
if (Meteor.isClient) {
navigator.geolocation.getCurrentPosition(function(position) {
Session.set('lat', position.coords.latitude);
Session.set('lon', position.coords.longitude);
});
Meteor.subscribe("markers");
Meteor.subscribe("userList");
Meteor.startup(function() {
GoogleMaps.load();
});
}